Skip to content

Commit

Permalink
👷 Fix GHA release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkrupinski committed Oct 27, 2024
1 parent 304d7e7 commit 8a8f3a5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
# .github/workflows/publish-to-pypi.yml

name: Publish to PyPI

on:
release:
types:
- published
workflow_dispatch:
inputs:
tag_name:
required: true
description: Tag name

jobs:
publish_pypi:
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: "refs/tags/${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || github.event.release.tag_name }}"

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Build Package
run: uv build

- name: Publish Package
run: uv publish

0 comments on commit 8a8f3a5

Please sign in to comment.