Skip to content

v0.12.0

v0.12.0 #22

Workflow file for this run

name: Release
on:
push:
tags:
- "v*" # i.e. v1.0, v20.15.10, ...
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install hatch
- name: Build tar.gz/wheel
run: |
hatch build
- name: Build exe
run: |
hatch run build-exe
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
# having a non-python binary in dist confuses twine
- name: Remove exe
run: |
rm dist/*.amd64
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}