From c41ec81b20c8f446d41531fdaf41f1f8782c1a77 Mon Sep 17 00:00:00 2001 From: wyapx Date: Fri, 16 Aug 2024 00:47:41 +0800 Subject: [PATCH] fix(workflow): release --- .github/actions/setup-python/action.yml | 21 +++++++++++++++++++ .../{python-publish.yml => release.yml} | 0 2 files changed, 21 insertions(+) create mode 100644 .github/actions/setup-python/action.yml rename .github/workflows/{python-publish.yml => release.yml} (100%) diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml new file mode 100644 index 0000000..ce7d0ff --- /dev/null +++ b/.github/actions/setup-python/action.yml @@ -0,0 +1,21 @@ +name: Setup Python +description: Setup Python + +inputs: + python-version: + description: Python version + required: false + default: "3.10" + +runs: + using: "composite" + steps: + - uses: pdm-project/setup-pdm@v3 + name: Setup PDM + with: + python-version: ${{ inputs.python-version }} + architecture: "x64" + cache: true + + - run: pdm sync -G:all + shell: bash \ No newline at end of file diff --git a/.github/workflows/python-publish.yml b/.github/workflows/release.yml similarity index 100% rename from .github/workflows/python-publish.yml rename to .github/workflows/release.yml