diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a2958218..912d8cf2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 7d110235..b2481f94 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,9 +2,7 @@ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries name: Upload to PYPI -on: - release: - types: [created] +on: push jobs: release-build: @@ -22,7 +20,7 @@ jobs: - name: Build a binary wheel and source tarball run: python3 -m build - name: Upload artifacts - uses: actions/upload-artifacts@v4 + uses: actions/upload-artifact@v4 with: name: release-dists path: dist/ @@ -33,7 +31,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') needs: - release-build - permission: + permissions: id-token: write steps: