Skip to content

Commit

Permalink
conditional release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
al3mart committed Aug 21, 2024
1 parent c4e2a6d commit 2411d21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:

on:
release:
types: [ published ]
types: [published]
workflow_dispatch:
inputs:
ref:
Expand All @@ -23,12 +23,12 @@ on:
jobs:
srtool:
runs-on: ubuntu-latest
if: github.event_name != 'workflow_dispatch' && 'true' || inputs.runtime
if: github.event_name != 'workflow_dispatch' && 'true' || inputs.runtime || startsWith(github.ref, 'refs/tags/runtime-')
permissions:
contents: write
strategy:
matrix:
runtime: [ "devnet", "testnet" ]
runtime: ["devnet", "testnet"]
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
build-node:
runs-on: ${{ matrix.platform.os }}
if: github.event_name != 'workflow_dispatch' && 'true' || inputs.node
if: github.event_name != 'workflow_dispatch' && 'true' || inputs.node || startsWith(github.ref, 'refs/tags/node-')
permissions:
contents: write
strategy:
Expand Down

0 comments on commit 2411d21

Please sign in to comment.