Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Oct 18, 2024
1 parent 7ee30e9 commit ed20321
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
name: dist-version
path: dist/VERSION

build-sdist:
needs: validate-release-request
Expand All @@ -67,7 +67,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-sdist
path: dist/*.tar.*

build-wheels-matrix:
Expand Down Expand Up @@ -127,9 +127,17 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-wheels
path: wheelhouse/*.whl

merge-artifacts:
runs-on: ubuntu-latest
needs: [build-sdist, build-wheels]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
name: dist

publish-docs:
needs: [build-sdist, build-wheels]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -180,6 +188,12 @@ jobs:
needs: [build-sdist, build-wheels, publish-docs]
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/asyncpg
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -223,7 +237,4 @@ jobs:
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
# password: ${{ secrets.TEST_PYPI_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
attestations: true

0 comments on commit ed20321

Please sign in to comment.