From 6ed870e7e80af0b87c3986da01d18371b4846e1c Mon Sep 17 00:00:00 2001 From: civisrom <167646351+civisrom@users.noreply.github.com> Date: Tue, 4 Feb 2025 22:41:30 +0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04e1e0cc..9b0f59bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,6 +132,12 @@ jobs: name: x-ui-linux-${{ matrix.platform }} path: ./x-ui-linux-${{ matrix.platform }}.tar.gz + - name: Delete existing asset (if exists) + run: | + gh release delete-asset ${{ github.ref }} x-ui-linux-${{ matrix.platform }}.tar.gz --yes || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload files to GH release uses: svenstaro/upload-release-action@v2 with: