TCutility v0.8.2 #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publishing to PyPI | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
concurrency: | |
group: "publishing" | |
cancel-in-progress: true | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi-publish | |
url: https://pypi.org/project/${{ github.event.repository.name }}/ | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Build package | |
run: | | |
python -m pip install --upgrade build | |
python -m build | |
- name: Publish ${{ github.event.repository.name }} to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
skip-existing: true | |