From 810805bd81df53f52d09237b1bd02a347a90826b Mon Sep 17 00:00:00 2001 From: Marcos Maceo Date: Tue, 14 May 2024 13:23:12 +0400 Subject: [PATCH] feat: add testing release action --- .github/workflows/testing-release.yaml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/testing-release.yaml diff --git a/.github/workflows/testing-release.yaml b/.github/workflows/testing-release.yaml new file mode 100644 index 0000000..4d3951d --- /dev/null +++ b/.github/workflows/testing-release.yaml @@ -0,0 +1,31 @@ +name: "Testing release action" +on: + workflow_dispatch: + pull_request: + push: + branches: + - "master" + - "main" + - "v[0-9]+.[0-9]+.[0-9]+" + paths-ignore: + - "README.md" + +jobs: + build-test: + name: Build Test + runs-on: ubuntu-latest + if: github.event_name != 'push' + steps: + - uses: actions/checkout@v3 + - run: npx @dappnode/dappnodesdk build --skip_save + + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Publish + run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset --timeout 2h + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"