From 46477eebeca84b47923179a4cc7642681288c9fb Mon Sep 17 00:00:00 2001 From: "Y.D.X" <73375426+YDX-2147483647@users.noreply.github.com> Date: Thu, 4 May 2023 21:22:35 +0800 Subject: [PATCH] ci: PyPI publish --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4388374 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release 🚀 + +on: + push: + tags: + - v* + +jobs: + pypi-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@v3 + - name: Setup pdm + uses: pdm-project/setup-pdm@v3 + with: + python-version: 3.11 + cache: true + - name: Build distributions + run: pdm build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1