From 9f7ffb80e1b74fdb91b92f5d56f0bad399948f76 Mon Sep 17 00:00:00 2001 From: Tunglies Date: Sun, 2 Mar 2025 23:46:20 +0800 Subject: [PATCH] chore: alpha ci should remove old builds --- .github/workflows/alpha.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index d2add9cf..e77166a8 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -207,6 +207,15 @@ jobs: echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV + - name: Delete Old Release + uses: ncipollo/release-action@v1.16.0 + with: + tag: alpha + removeArtifacts: true + allowUpdates: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Release uses: softprops/action-gh-release@v2 with: @@ -299,6 +308,15 @@ jobs: Rename-Item $file.FullName $newName } + - name: Delete Old Release + uses: ncipollo/release-action@v1.16.0 + with: + tag: alpha + removeArtifacts: true + allowUpdates: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Release uses: softprops/action-gh-release@v2 with: @@ -366,6 +384,15 @@ jobs: Created at ${{ env.BUILDTIME }}. EOF + - name: Delete Old Release + uses: ncipollo/release-action@v1.16.0 + with: + tag: alpha + removeArtifacts: true + allowUpdates: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Release uses: softprops/action-gh-release@v2 with: