Skip to content

v0.6.1

v0.6.1 #22

Workflow file for this run

name: Upload PyPI Release
on:
release:
types: [published]
jobs:
build:
name: Build package
runs-on: ubuntu-latest
environment:
name: release
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set VERSION variable from tag
run: |
VERSION=${{github.head_ref}}
echo "VERSION=${VERSION##*/}" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install pypa/build
run: |
python -m pip install build
python -m build
- uses: actions/upload-artifact@v4
with:
name: package
path: dist/
publish:
name: Publish on PyPI
runs-on: ubuntu-latest
environment:
name: release
needs: build
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download built artifact
uses: actions/download-artifact@v4
with:
name: package
path: dist
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}