Skip to content

Commit

Permalink
Update release action (#1803)
Browse files Browse the repository at this point in the history
* make permissions local to release job (safer)

* use correct artifact name, and unzip

* Fix download and extract package

---------

Co-authored-by: Tania Allard <[email protected]>
  • Loading branch information
drammock and trallard authored May 7, 2024
1 parent 5a7fef9 commit adedd87
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:

permissions:
contents: read
id-token: write # needed for PyPI upload

jobs:
# calls our tests workflow
Expand Down Expand Up @@ -46,13 +45,19 @@ jobs:
release-pypi:
runs-on: ubuntu-latest
needs: [build-package]
permissions:
id-token: write # needed for PyPI upload
steps:
- name: "Download PST built package 📦"
uses: actions/download-artifact@v4
with:
name: PST-package
name: Packages
path: dist

- name: "Unzip artifact"
run: |
tar xf dist/*.tar.gz --strip-components=1
- name: "Publish PST package to PyPI 🚀"
uses: pypa/gh-action-pypi-publish@release/v1
# only publish if this is a published release by pydata
Expand Down

0 comments on commit adedd87

Please sign in to comment.