From 2b6c0d8b3d0efa3bc10a60f6741a60c5d624912b Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Thu, 16 Nov 2023 01:48:31 +0800 Subject: fix: maintain release pdm section --- .github/workflows/release.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8542a3b..35aa77d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,25 +9,22 @@ on: jobs: build: runs-on: ubuntu-latest - + env: + PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }} steps: - uses: actions/checkout@v3 - - name: Install poetry - run: pipx install poetry + - name: Install pdm + run: pipx install pdm shell: bash - uses: actions/setup-python@v4 with: python-version: "3.9" architecture: "x64" - cache: "poetry" - - run: poetry install - shell: bash - - - run: poetry config pypi-token.pypi "$PYPI_TOKEN" + cache: true + - run: pdm install shell: bash - env: - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - - run: poetry publish --build + - run: pdm publish shell: bash \ No newline at end of file -- cgit v1.2.3-70-g09d2