Skip to content

Commit

Permalink
Add env variable to pypi upload job
Browse files Browse the repository at this point in the history
  • Loading branch information
mclegrand authored Mar 29, 2024
1 parent 8e90e88 commit f7189a7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
tags:
- "v*"

permissions:
id-token: write

jobs:
build_wheels:
Expand Down Expand Up @@ -62,11 +59,17 @@ jobs:
upload_pypi:
needs: [ build_wheels, build_sdist ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/scikit-network
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit f7189a7

Please sign in to comment.