Skip to content

Merge pull request #878 from procrastinate-org/issue-871-ewjoachim #20

Merge pull request #878 from procrastinate-org/issue-871-ewjoachim

Merge pull request #878 from procrastinate-org/issue-871-ewjoachim #20

Workflow file for this run

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 }}"