Skip to content

Commit

Permalink
try automating publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
luiarthur committed Jan 17, 2025
1 parent 4da4ea4 commit 716bc6b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to PyPI
on:
push:
tags:
- "v*.*.*"

jobs:
pypi-publish:
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: pypi
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: uv build && uv publish

0 comments on commit 716bc6b

Please sign in to comment.