From dc0a04b48cf548fa84101d42f56881872456c801 Mon Sep 17 00:00:00 2001 From: jaseemjaskp Date: Tue, 25 Jun 2024 12:39:30 +0530 Subject: [PATCH] Github action added --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..83e78ff --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/.gitignore b/.gitignore index 82f9275..7b1e028 100644 --- a/.gitignore +++ b/.gitignore @@ -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/*