Add publishing to release workflow.
This commit is contained in:
parent
424c107713
commit
f3e6719497
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -33,6 +33,7 @@ jobs:
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: python-dist
|
||||
path: dist/pumpkin_api_py*
|
||||
|
||||
- name: Upload artifacts to release
|
||||
@ -44,3 +45,21 @@ jobs:
|
||||
file: dist/pumpkin_api_py*
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
publish:
|
||||
name: Publish to PyPI
|
||||
needs: release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: pypi
|
||||
url: https://pypi.org/p/pumpkin-api-py
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: python-dist
|
||||
path: dist/
|
||||
- name: Publish
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user