Skip to content

Commit

Permalink
Pypi secret passing (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Chan authored Feb 6, 2024
2 parents fa4b4e7 + e1f6cd1 commit 3b1669e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/_pypi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on:
workflow_call:
secrets:
PYPI_TOKEN:
required: true

jobs:
upload:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ jobs:
needs: check
if: needs.check.outputs.branch-pr == ''
uses: ./.github/workflows/_dist.yml

{% raw %}
pypi:
if: github.ref_type == 'tag'
needs: dist
uses: ./.github/workflows/_pypi.yml
permissions:
id-token: write

secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
{% endraw %}
release:
if: github.ref_type == 'tag'
needs: [dist{% if sphinx %}, docs{% endif %}]
Expand Down

0 comments on commit 3b1669e

Please sign in to comment.