diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..c23e1c8 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,30 @@ +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/setup-python@v5.1.1 + 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