Skip to content

Commit

Permalink
Add workflow to publish release to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
friedkeenan committed Jan 1, 2025
1 parent 7bbabb2 commit 4f42f9b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Release

on:
release:
types: [released]

jobs:
publish:
environment:
name: pypi
url: https://pypi.org/p/pak
permissions:
id-token: write

runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Install pypa/build
run: pip install build

- name: Run pypa/build
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 4f42f9b

Please sign in to comment.