diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8af1e9747c..4997b1f675 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ on: - label: - types: [created] + push: + tags: + - v* # a lot of code taken from https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml jobs: @@ -17,19 +18,18 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: trio-sdist - path: dist/*.tar.gz - - - uses: actions/upload-artifact@v4 - with: - name: trio-wheel - path: dist/*.whl + name: trio-dist + path: | + dist/*.tar.gz + dist/*.whl pypi-publish: needs: [build] name: upload release to PyPI runs-on: ubuntu-latest - environment: release + environment: + name: release + url: https://pypi.org/project/trio permissions: id-token: write diff --git a/docs/source/releasing.rst b/docs/source/releasing.rst index 2ed9adf72d..3adc7b17b0 100644 --- a/docs/source/releasing.rst +++ b/docs/source/releasing.rst @@ -41,7 +41,7 @@ Things to do for releasing: * tag with vVERSION, push tag on ``python-trio/trio`` (not on your personal repository) -* approve the release workflow +* approve the release workflow's publish job * update version number in the same pull request