2022-03-09 13:26:51 +01:00
|
|
|
name: Release on PyPI
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
branch:
|
|
|
|
description: "The branch, tag or SHA to release from"
|
|
|
|
required: true
|
|
|
|
default: "master"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pypi-build-and-release:
|
|
|
|
name: Build and Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ github.event.inputs.branch }}
|
|
|
|
|
2022-06-09 19:04:06 +02:00
|
|
|
- uses: actions/setup-python@v4
|
2022-03-09 13:26:51 +01:00
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
|
|
|
|
- name: Build a binary wheel and a source tarball
|
2022-05-05 22:44:17 +02:00
|
|
|
run: make install && make build
|
2022-03-09 13:26:51 +01:00
|
|
|
|
|
|
|
- name: Release on PyPI
|
|
|
|
uses: pypa/gh-action-pypi-publish@master
|
|
|
|
with:
|
|
|
|
password: ${{ secrets.PYPI_TOKEN }}
|