Skip to content

Commit

Permalink
Action to publish on new release
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Aug 19, 2024
1 parent 98455db commit ec40c49
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -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/[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

0 comments on commit ec40c49

Please sign in to comment.