Skip to content

release

release #3

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
jobs:
publish-release:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies + package
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
- name: Build release
if: success() && startsWith(github.ref, 'refs/tags')
shell: bash
run: |
python -m pip install --upgrade pip
pip install build twine
python -m build --wheel
twine check dist/*
twine upload dist/* --skip-existing
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}