Skip to content

Rewrite GH action to publish #6

Rewrite GH action to publish

Rewrite GH action to publish #6

name: Upload Python Package
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.x"
- name: Install dependencies
run: rye sync
- name: Build package
run: rye build
- name: Publish package
uses: rye publish --token "${{ secrets.PYPI_API_TOKEN }}" --yes