Skip to content

Commit

Permalink
update workflow CI and add a new workflow for release to PYPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Macktireh committed Sep 29, 2024
1 parent 77a5f9f commit 4a81d5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
code-quality:
name: Code Quality
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -24,6 +25,7 @@ jobs:
run: pdm run ruff check --diff

testing:
name: Testing
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release

on:
release:
types: [published]

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- name: Publish package distributions to PyPI
run: |
pdm publish --password ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 4a81d5f

Please sign in to comment.