Skip to content

Commit

Permalink
Add workflow for automated publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
SkwalExe committed Jun 5, 2024
1 parent e4858c0 commit b49f339
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to PyPI

on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'pyproject.toml'

jobs:
publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4

- name: Publish package distributions to PyPI
run: pdm publish

0 comments on commit b49f339

Please sign in to comment.