From d53411d6810c8a24827b78f8f7fd936e0ed31abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=8E=AE=20=28Jade=20Lin=29?= Date: Thu, 10 Oct 2024 23:12:56 +0800 Subject: [PATCH] ci: update .github/workflows/release.yml --- .github/workflows/release.yml | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c521554..4039317 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,32 +3,32 @@ name: Release on: push: tags: - - '*' + - "*" jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up PDM - uses: pdm-project/setup-pdm@v2.5 - with: - python-version: 3.8 - - name: Build release - run: | - pdm build - - name: Upload release - uses: actions/upload-artifact@v1 - with: - name: dist - path: dist - - name: Publish release to PYPI - run: | - pip install twine - twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --verbose dist/* - - name: Publish release to GitHub Release - uses: softprops/action-gh-release@v1 - with: - files: dist/* - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v1 + - name: Set up PDM + uses: pdm-project/setup-pdm@v2.5 + with: + python-version: 3.9 + - name: Build release + run: | + pdm build + - name: Upload release + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist + - name: Publish release to PYPI + run: | + pip install twine + twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --verbose dist/* + - name: Publish release to GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}