Skip to content

v1.2.0

v1.2.0 #18

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [released]
workflow_dispatch:
jobs:
publish_to_pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
- name: Build
run: rye build
- name: Publish
run: rye publish -u $PYPI_USERNAME --token $PYPI_PASSWORD