0.0.12 | Better FastAPI docs #7
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: Release PyPI Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
release_package: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.11.3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11.3 | |
- name: Build a binary wheel and a source tarball. | |
run: pip install wheel && python setup.py sdist bdist_wheel | |
- name: Publish distribution 馃摝 to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |