Skip to content

0.3.0

0.3.0 #11

Workflow file for this run

---
name: Publish
on:
release:
types: [published]
jobs:
publish:
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
- name: Parse the git tag
id: get_tag
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Bump poetry version
run: poetry version ${{ steps.get_tag.outputs.TAG }}
- name: Publish to PyPI
run: poetry publish -n --build --username __token__ --password ${{ secrets.pypi_password }}