From 911a3d0c04d93b6ef4700ea730a7a5250ca592e7 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Wed, 2 Feb 2022 16:28:47 +0000 Subject: [PATCH] Change trigger for GitHub Action to build and sign the wallet --- .../workflows/nym-wallet-publish-macos.yml | 13 ++++++++++--- .github/workflows/nym-wallet-publish.yml | 19 ------------------- 2 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/nym-wallet-publish.yml diff --git a/.github/workflows/nym-wallet-publish-macos.yml b/.github/workflows/nym-wallet-publish-macos.yml index b75986d0ac..16241090a5 100644 --- a/.github/workflows/nym-wallet-publish-macos.yml +++ b/.github/workflows/nym-wallet-publish-macos.yml @@ -1,8 +1,7 @@ name: Publish Nym Wallet (MacOS) on: - push: - tags: - - nym-wallet-* + release: + types: [created] defaults: run: @@ -18,6 +17,14 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 + + - name: Check the release tag starts with `nym-wallet-` + if: startsWith(github.ref, 'refs/tags/nym-wallet-') + uses: actions/github-script@v3 + with: + script: | + core.setFailed('Release tag did not start with nym-wallet-...') + - name: Node v16 uses: actions/setup-node@v1 with: diff --git a/.github/workflows/nym-wallet-publish.yml b/.github/workflows/nym-wallet-publish.yml deleted file mode 100644 index 549e306197..0000000000 --- a/.github/workflows/nym-wallet-publish.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish Nym Wallet (create release based on tag name) -on: - push: - tags: - - nym-wallet-* - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - draft: true - body: This is a pre-release of the Nym Wallet. -