From 5db57d50e50878a79b7b81010d3fd24f2cd7a339 Mon Sep 17 00:00:00 2001 From: sinspired Date: Tue, 15 Oct 2024 22:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E9=80=89DNS=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=EF=BC=8C=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0hosts?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_release.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 92bbb4e..d0c2b44 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -56,7 +56,7 @@ jobs: name: ${{ matrix.platform }}-executables path: dist/* - create-or-update-release: + create-release: needs: build-and-release runs-on: ubuntu-latest permissions: @@ -64,21 +64,30 @@ jobs: steps: - name: Download all artifacts uses: actions/download-artifact@v3 + + - name: Delete existing release + uses: dev-drprasad/delete-tag-and-release@v0.2.1 + with: + tag_name: ${{ github.ref_name }} + delete_release: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Get release - id: get_release - uses: bruceadams/get-release@v1.3.2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false - - name: Update Release Assets + - name: Upload Release Assets uses: softprops/action-gh-release@v1 with: files: | *-executables/* - tag_name: ${{ github.ref }} - name: Release ${{ github.ref }} - draft: false - prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file