Skip to content

Commit

Permalink
Create python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huxulm authored Dec 2, 2024
1 parent 5ce04b3 commit 538a7b7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will upload a Python Package to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: write

jobs:
release-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: JRubics/poetry-publish@v2.0
with:
python_version: "3.12"
pypi_token: ${{ secrets.PYPI_TOKEN }}

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

0 comments on commit 538a7b7

Please sign in to comment.