v0.14.4 #25
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 will run every time a tag is created and pushed to the repository. | |
# It calls our tests workflow via a `workflow_call`, and if tests pass | |
# then it triggers our upload to PyPI for a new release. | |
name: Publish to PyPI | |
on: | |
release: | |
types: ["published"] | |
jobs: | |
tests: | |
uses: ./.github/workflows/tests.yml | |
publish: | |
name: publish | |
needs: [tests] # require tests to pass before deploy runs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install gettext for translations | |
run: | | |
sudo apt-get install gettext | |
- name: Build package | |
run: | | |
python -m pip install -U pip build | |
python -m build | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_KEY }} |