From 062209af5e45f39ca3a3f29c0761b2ac419e468c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 04:07:33 +0000 Subject: [PATCH] fix: publish release only after all build assets are uploaded Agent-Logs-Url: https://github.com/xAlokyx/3x-ui/sessions/2fbd5e7f-9b24-43f3-97b1-6ba49b58e704 Co-authored-by: xAlokyx <234771438+xAlokyx@users.noreply.github.com> --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 523d9287..9edda3e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -156,4 +156,18 @@ jobs: asset_name: x-ui-linux-${{ matrix.platform }}.tar.gz overwrite: true prerelease: false + release_type: draft + + publish: + name: Publish release + needs: build + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Publish draft release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release edit ${{ github.ref_name }} --draft=false --repo ${{ github.repository }}