| 1 |
name: Release |
| 2 |
|
| 3 |
on: |
| 4 |
release: |
| 5 |
types: [published] |
| 6 |
|
| 7 |
permissions: {} |
| 8 |
|
| 9 |
jobs: |
| 10 |
build: |
| 11 |
name: Build |
| 12 |
runs-on: ubuntu-latest |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 15 |
with: |
| 16 |
persist-credentials: false |
| 17 |
|
| 18 |
- run: pipx run build |
| 19 |
|
| 20 |
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f |
| 21 |
with: |
| 22 |
name: distfiles |
| 23 |
path: dist/ |
| 24 |
if-no-files-found: error |
| 25 |
|
| 26 |
upload-pypi: |
| 27 |
name: Upload (PyPI) |
| 28 |
runs-on: ubuntu-latest |
| 29 |
environment: |
| 30 |
name: release |
| 31 |
url: https://pypi.org/project/installer/ |
| 32 |
permissions: |
| 33 |
id-token: write |
| 34 |
needs: build |
| 35 |
steps: |
| 36 |
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 |
| 37 |
with: |
| 38 |
name: distfiles |
| 39 |
path: dist/ |
| 40 |
|
| 41 |
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e |
| 42 |
with: |
| 43 |
print-hash: true |