Commit b2def95107
Verified · cmc
Layout: unified · split
.github/workflows/python-publish.yml deleted −34
| @@ -1,34 +0,0 @@ | ||
| 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 | |
| 3 | ||
| 4 | name: Upload Python Package | |
| 5 | ||
| 6 | on: | |
| 7 | release: | |
| 8 | types: [published] | |
| 9 | ||
| 10 | permissions: | |
| 11 | contents: read | |
| 12 | ||
| 13 | jobs: | |
| 14 | deploy: | |
| 15 | runs-on: ubuntu-latest | |
| 16 | environment: | |
| 17 | name: pypi | |
| 18 | url: https://pypi.org/p/yoshi-cli | |
| 19 | permissions: | |
| 20 | id-token: write | |
| 21 | steps: | |
| 22 | - uses: actions/checkout@v4 | |
| 23 | - name: Set up Python | |
| 24 | uses: actions/setup-python@v5 | |
| 25 | with: | |
| 26 | python-version: '3.x' | |
| 27 | - name: Install dependencies | |
| 28 | run: | | |
| 29 | python -m pip install --upgrade pip | |
| 30 | pip install build | |
| 31 | - name: Build package | |
| 32 | run: python -m build | |
| 33 | - name: Publish package | |
| 34 | uses: pypa/gh-action-pypi-publish@release/v1 | |
| \ No newline at end of file | ||