From 1fbc646760bc84527dfd0a2c9847c12bd6a2c39c Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 8 May 2024 15:07:34 +0800 Subject: [PATCH] ci: fix release --- .github/workflows/pip_publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pip_publish.yml b/.github/workflows/pip_publish.yml index 3ff5c5f..bb7f014 100644 --- a/.github/workflows/pip_publish.yml +++ b/.github/workflows/pip_publish.yml @@ -16,16 +16,16 @@ jobs: with: python-version: "3.9" + - name: Update package + run: | + python -m pip install --upgrade pip + python -m pip install pdm tomlkit + - uses: softprops/action-gh-release@v1 with: tag_name: ${{ github.ref_name }} - - name: Update pyproject.toml version - run: | - python tools/pip_pack.py ${{ github.ref_name }} - - name: Install pdm and publish run: | - python -m pip install --upgrade pip - pip install pdm + python tools/pip_pack.py ${{ github.ref_name }} pdm publish --password ${{ secrets.PYPI_TOKEN }}