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: