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>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-04 04:07:33 +00:00 committed by GitHub
parent e4fd4d9ae6
commit 062209af5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}