diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a48a58a..a31729b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,10 +10,7 @@ name: Upload Python Package on: release: - types: [published] - -permissions: - contents: read + types: [created] jobs: deploy: @@ -21,6 +18,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write + steps: - uses: actions/checkout@v4 - name: Set up Python @@ -34,7 +32,7 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + uses: pypa/gh-action-pypi-publish@release/v1