Skip to content

Commit adedd87

Browse files
drammocktrallard
andauthored
Update release action (#1803)
* 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]>
1 parent 5a7fef9 commit adedd87

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ env:
1313

1414
permissions:
1515
contents: read
16-
id-token: write # needed for PyPI upload
1716

1817
jobs:
1918
# calls our tests workflow
@@ -46,13 +45,19 @@ jobs:
4645
release-pypi:
4746
runs-on: ubuntu-latest
4847
needs: [build-package]
48+
permissions:
49+
id-token: write # needed for PyPI upload
4950
steps:
5051
- name: "Download PST built package 📦"
5152
uses: actions/download-artifact@v4
5253
with:
53-
name: PST-package
54+
name: Packages
5455
path: dist
5556

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

0 commit comments

Comments
 (0)