Commit cff4519b59
Unregistered key
Layout: unified · split
.github/workflows/python-publish.yml +6 −8
| @@ -1,11 +1,6 @@ | ||
| 1 | 1 | # This workflow will upload a Python Package using Twine when a release is created |
| 2 | 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries |
| 3 | 3 | |
| 4 | # This workflow uses actions that are not certified by GitHub. | |
| 5 | # They are provided by a third-party and are governed by | |
| 6 | # separate terms of service, privacy policy, and support | |
| 7 | # documentation. | |
| 8 | ||
| 9 | 4 | name: Upload Python Package |
| 10 | 5 | |
| 11 | 6 | on: |
| @@ -17,9 +12,12 @@ permissions: | ||
| 17 | 12 | |
| 18 | 13 | jobs: |
| 19 | 14 | deploy: |
| 20 | ||
| 21 | 15 | runs-on: ubuntu-latest |
| 22 | ||
| 16 | environment: | |
| 17 | name: pypi | |
| 18 | url: https://pypi.org/p/yoshi-cli | |
| 19 | permissions: | |
| 20 | id-token: write | |
| 23 | 21 | steps: |
| 24 | 22 | - uses: actions/checkout@v4 |
| 25 | 23 | - name: Set up Python |
| @@ -33,7 +31,7 @@ jobs: | ||
| 33 | 31 | - name: Build package |
| 34 | 32 | run: python -m build |
| 35 | 33 | - name: Publish package |
| 36 | uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | |
| 34 | uses: pypa/gh-action-pypi-publish@release/v1 | |
| 37 | 35 | with: |
| 38 | 36 | user: __token__ |
| 39 | 37 | password: ${{ secrets.PYPI_API_TOKEN }} |