Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/publish-pypi-package.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish PyPI Package

on:
push:
tags:
- v*

permissions:
contents: read # Build from source

jobs:
build:
runs-on: ubuntu-latest
name: Build PyPI Package

steps:
- name: Cloning repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false

- name: Build binary wheel and a source tarball
run: |
python -m pip install build
python -m build

- name: Upload distributions
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist
path: dist/

publish:
runs-on: ubuntu-latest
name: Publish PyPI Package
needs: build
Comment thread
khvn26 marked this conversation as resolved.
Resolved
environment: pypi

permissions:
id-token: write # Authenticate to PyPI via OIDC

steps:
- name: Download distributions
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist
path: dist/

- name: Publish Package to PyPI
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
Loading