From d14cbc16a1d69133c953a04877e6827ed23a43f4 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 21 Nov 2024 23:26:26 +0800 Subject: [PATCH] add GitHub Actions for uploading package to PyPI --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..d9027a8 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + tags: + - 'v*' +jobs: + publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + + - uses: pdm-project/setup-pdm@v4 + + - name: Publish package distributions to PyPI + run: pdm publish \ No newline at end of file