Skip to content

Commit c6a7b00

Browse files
committed
update release workflow
1 parent 8e608e6 commit c6a7b00

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
jobs:
1616
update-stable:
1717
runs-on: ubuntu-latest
18-
if: ${{ github.ref_name == 'main' }}
18+
if: ${{ (github.event_name == 'push' && github.ref_type == 'tag') || github.event_name == 'workflow_run' }}
1919
steps:
2020
- uses: actions/checkout@v5
2121
with:
@@ -32,6 +32,7 @@ jobs:
3232
build:
3333
runs-on: ubuntu-latest
3434
needs: update-stable
35+
if: ${{ (github.event_name == 'push' && github.ref_type == 'tag') || github.event_name == 'workflow_run' }}
3536
steps:
3637
- name: (debug) print workflow trigger
3738
run: |
@@ -72,7 +73,7 @@ jobs:
7273
publish:
7374
runs-on: ubuntu-latest
7475
needs: build
75-
if: ${{ github.ref_name == 'main' }}
76+
if: ${{ (github.event_name == 'push' && github.ref_type == 'tag') || github.event_name == 'workflow_run' }}
7677
steps:
7778
- name: download build artifacts
7879
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)