Commit cff4519b59
Unregistered key
Layout: unified · split
.github/workflows/python-publish.yml +6 −8
| @@ -1,11 +1,6 @@ | |||
| 1 | # This workflow will upload a Python Package using Twine when a release is created | 1 | # This workflow will upload a Python Package using Twine when a release is created |
| 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | 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 | name: Upload Python Package | 4 | name: Upload Python Package |
| 10 | 5 | ||
| 11 | on: | 6 | on: |
| @@ -17,9 +12,12 @@ permissions: | |||
| 17 | 12 | ||
| 18 | jobs: | 13 | jobs: |
| 19 | deploy: | 14 | deploy: |
| 20 | |||
| 21 | runs-on: ubuntu-latest | 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 | steps: | 21 | steps: |
| 24 | - uses: actions/checkout@v4 | 22 | - uses: actions/checkout@v4 |
| 25 | - name: Set up Python | 23 | - name: Set up Python |
| @@ -33,7 +31,7 @@ jobs: | |||
| 33 | - name: Build package | 31 | - name: Build package |
| 34 | run: python -m build | 32 | run: python -m build |
| 35 | - name: Publish package | 33 | - name: Publish package |
| 36 | uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | 34 | uses: pypa/gh-action-pypi-publish@release/v1 |
| 37 | with: | 35 | with: |
| 38 | user: __token__ | 36 | user: __token__ |
| 39 | password: ${{ secrets.PYPI_API_TOKEN }} | 37 | password: ${{ secrets.PYPI_API_TOKEN }} |