Merge #1046 #67
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: PyPI | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
cache: "pipenv" | |
- name: Check release validity | |
run: sh .github/scripts/check-release.sh | |
- name: Install pipenv | |
run: pipx install pipenv | |
- name: Install dependencies | |
run: | | |
pipenv install | |
pipenv run pip3 install build setuptools wheel twine | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: "pypi-${{ secrets.PYPI_API_TOKEN }}" | |
run: | | |
pipenv run python3 -m build | |
pipenv run twine upload dist/* |