diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 59cb3ee..fac402e 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -16,13 +16,11 @@ jobs: python-version: '3.8' - shell: bash env: - REPO_PASS: ${{ secrets.PYPI }} VERSION_TAG: ${{ github.event.release.tag_name }} BRANCH: ${{ github.event.release.target_commitish }} run: | make install VERSION=$(echo "${VERSION_TAG}" | cut -c2-) make build - make publish # Setup git # https://api.github.com/users/github-actions%5Bbot%5D @@ -37,3 +35,25 @@ jobs: git tag --force "${VERSION_TAG}" git push --force origin "${VERSION_TAG}" + - name: upload dists + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + pypi-publish: + runs-on: ubuntu-latest + needs: + - build + permissions: + id-token: write + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1