Skip to content

Prepare release 18.20.2 (#27) #4

Prepare release 18.20.2 (#27)

Prepare release 18.20.2 (#27) #4

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install build dependencies
run: pip install -U setuptools wheel build
- name: Set package version
run: |
VERSION="${GITHUB_REF#refs/*/}"
sed -i"" -e "s/^PACKAGE_VERSION = .*/PACKAGE_VERSION = \"${VERSION}\"/g" ./setup.py
- name: Build
run: python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true