diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 18da61791..ff973840e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,6 @@ env: permissions: contents: read - id-token: write # needed for PyPI upload jobs: # calls our tests workflow @@ -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