Merge pull request #873 from ashleyheath/encoding #17
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: Deploy | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
name: Publish package to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3" | |
cache: "poetry" | |
- name: Install Dev dependencies | |
run: poetry install | |
- name: Wait for tests to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-ci | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: success | |
- name: Exit if CI did not succeed | |
if: steps.wait-for-ci.outputs.conclusion != 'success' | |
run: exit 1 | |
- name: Publish on PyPI | |
run: scripts/publish | |
env: | |
PYPI_TOKEN: "${{ secrets.PYPI_TOKEN }}" |