Skip to content

Add PyPI publishing workflow #1

Add PyPI publishing workflow

Add PyPI publishing workflow #1

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*' # Memicu publish saat tag seperti v0.1.1 didorong
jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
environment: pypi # Sesuai dengan environment name di form
permissions:
id-token: write # Wajib untuk trusted publishing
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
- name: Build package
run: uv build
- name: Publish to PyPI
run: uv publish --trusted-publishing always