From a3036fa71ccb4735fcecaeedca8b0394f7cf6722 Mon Sep 17 00:00:00 2001 From: Daanvdplas Date: Thu, 16 Jan 2025 15:20:59 +0200 Subject: [PATCH] feat(ci): run release job on node tag name --- .github/workflows/release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89e4d944..a900da4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,11 +16,11 @@ on: description: Build node default: true runtime: - description: 'Runtime to build (devnet, testnet, mainnet)' - default: '' + description: 'Runtime to build (none, devnet, testnet, mainnet)' + default: none type: choice options: - - '' + - none - devnet - testnet - mainnet @@ -33,7 +33,7 @@ jobs: startsWith(github.event.release.tag_name, 'devnet') || startsWith(github.event.release.tag_name, 'mainnet') || github.event_name == 'workflow_dispatch' && - github.event.inputs.runtime != '' + github.event.inputs.runtime != 'none' permissions: contents: write steps: @@ -151,7 +151,8 @@ jobs: build-node: runs-on: ${{ matrix.platform.os }} - if: github.event_name != 'workflow_dispatch' && 'true' || inputs.node + if: | + startsWith(github.event.release.tag_name, 'node') || (github.event_name == 'workflow_dispatch' && inputs.node == 'true') permissions: contents: write strategy: @@ -224,4 +225,4 @@ jobs: uses: softprops/action-gh-release@v1 with: files: | - ${{ env.path }}/${{ env.package }} \ No newline at end of file + ${{ env.path }}/${{ env.package }}