Skip to content

Commit

Permalink
feat(ci): run release job on node tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvdplas committed Jan 16, 2025
1 parent 70cffab commit a3036fa
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -224,4 +225,4 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.path }}/${{ env.package }}
${{ env.path }}/${{ env.package }}

0 comments on commit a3036fa

Please sign in to comment.