Skip to content

Commit

Permalink
Github action added
Browse files Browse the repository at this point in the history
  • Loading branch information
jaseemjaskp committed Jun 25, 2024
1 parent cf00731 commit dc0a04b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Python Package

on:
release:
types:
- published

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-20.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}

- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.11
version: 2.10.0

- name: Publish package distributions to PyPI
run: pdm publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
tests/data/*

0 comments on commit dc0a04b

Please sign in to comment.