v0.5.4 #6
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
# This workflow publishes the package to pypi. | |
# For more details: | |
# https://docs.github.com/en/actions/guides/building-and-testing-python#publishing-to-package-registries | |
name: Publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# fetch all tags so `versioneer` can properly determine current version | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: python -m pip install -r requirements.txt .[dev] | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
TWINE_REPOSITORY: pypi | |
run: | | |
python -m build | |
twine upload dist/* |