Skip to content

Commit 39e06de

Browse files
committed
added release keyword
1 parent afef74f commit 39e06de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
tags:
88
- "v*"
99
- "[0-9]*"
10+
release:
11+
types: [published]
1012
pull_request:
1113
branches:
1214
- main
@@ -35,7 +37,7 @@ jobs:
3537
publish:
3638
needs: test
3739
runs-on: ubuntu-latest
38-
if: startsWith(github.ref, 'refs/tags/')
40+
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'release'
3941
permissions:
4042
id-token: write # Required for OIDC trusted publishing
4143

0 commit comments

Comments
 (0)