Skip to content

release

release #14

Workflow file for this run

name: release
on: [workflow_dispatch]
jobs:
pypi-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
name: upload release to PyPI
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Replace links in README.md
run: |
sed -i -e 's|https://github.com/\(.*\)/blob/|https://raw.githubusercontent.com/\1/|g' README.md
- name: Build package
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1