From 012e044c54b35094511b6a3316c9a58fb34512e8 Mon Sep 17 00:00:00 2001 From: Meta Date: Mon, 28 Mar 2022 19:02:51 +0800 Subject: [PATCH] =?UTF-8?q?[Chore]=E5=AE=8C=E6=88=90=E8=B0=83=E8=AF=95work?= =?UTF-8?q?flows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Alpha.yml | 11 ++++++----- .github/workflows/delete.yaml | 24 ------------------------ 2 files changed, 6 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/delete.yaml diff --git a/.github/workflows/Alpha.yml b/.github/workflows/Alpha.yml index e2cbc88de..4db213d3f 100644 --- a/.github/workflows/Alpha.yml +++ b/.github/workflows/Alpha.yml @@ -33,12 +33,13 @@ jobs: NAME: Clash.Meta BINDIR: bin run: make -j releases - - name: Delete old tag and release - uses: cb80/delrel@latest + + - name: Delete current release assets + uses: andreaswilli/delete-release-assets-action@v2.0.0 with: - tag_name: alpha # tag name to delete -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + tag: alpha + deleteOnlyFromDrafts: false - name: Upload Alpha uses: svenstaro/upload-release-action@v2 diff --git a/.github/workflows/delete.yaml b/.github/workflows/delete.yaml deleted file mode 100644 index b749291e4..000000000 --- a/.github/workflows/delete.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: Delete Release Assets - -on: push - -jobs: - deleteReleaseAssets: - runs-on: ubuntu-latest - - steps: - - name: Check out Git repository - uses: actions/checkout@v1 - - - name: Delete current release assets - uses: andreaswilli/delete-release-assets-action@v2.0.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} -# tagPrefix: v - tag: alpha - deleteOnlyFromDrafts: false - - - name: Delete a Release - uses: liudonghua123/delete-release-action@v1 - with: - release_name: 'alpha'