Skip to content

Commit

Permalink
ci: add publishing workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Sep 16, 2023
1 parent 0323ebc commit 3abb281
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Latest Release

on:
release:
types: [published]

jobs:
publish-release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- uses: pdm-project/setup-pdm@v3
name: Set up PDM
with:
python-version: "3.11"
allow-python-prereleases: true
cache: true

- name: Build package
run: pdm build

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

0 comments on commit 3abb281

Please sign in to comment.