Skip to content

Workflow file for this run

name: Release workflow
on:
push:
tags:
- "v[0123456789].*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: build
run: |
python -m pip install --upgrade build hatch
python -m hatch version "${GITHUB_REF_NAME}"
python -m build
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}