Skip to content

Merge pull request #17 from botify-labs/support-additional-versions-i… #7

Merge pull request #17 from botify-labs/support-additional-versions-i…

Merge pull request #17 from botify-labs/support-additional-versions-i… #7

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@v4
- name: Install poetry
run: |
pipx install poetry
pipx inject poetry 'poetry-dynamic-versioning[plugin]'
- name: Set up Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3"
cache: "poetry"
- name: Install 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: poetry publish --no-interaction --build --username "__token__" --password "$PYPI_TOKEN"
env:
PYPI_TOKEN: "${{ secrets.PYPI_TOKEN }}"