Skip to content

Commit 8aa8b06

Browse files
authored
Conditionally run snapshot release, actually make OIDC publishing work (#1670)
1 parent 3d0b66c commit 8aa8b06

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
name: Publish & Deploy
1212
if: github.event_name == 'push'
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
1416
env:
1517
CI: true
1618
steps:
@@ -42,7 +44,10 @@ jobs:
4244

4345
snapshot:
4446
name: Publish snapshot version
47+
if: github.event_name == 'workflow_dispatch'
4548
runs-on: ubuntu-latest
49+
permissions:
50+
id-token: write
4651
env:
4752
CI: true
4853
steps:

0 commit comments

Comments
 (0)