Skip to content

Commit 8422afe

Browse files
committed
chore: allow CI to read PyPI token
1 parent a236411 commit 8422afe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: build & release
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branch: [main, master]
9+
branch: main
1010
tags:
1111
- 'v*'
1212

@@ -22,6 +22,10 @@ jobs:
2222
matrix:
2323
python-versions: ['3.10']
2424

25+
# authorize job to read secrets
26+
permissions:
27+
id-token: write
28+
2529
# map step outputs to job outputs so they can be share among jobs
2630
outputs:
2731
package_version: ${{ steps.variables_step.outputs.package_version }}

0 commit comments

Comments
 (0)