Merge pull request #6 from xAlokyx/copilot/fix-installation-issue-banel

fix: prevent 404 during install by publishing release only after all assets are uploaded
This commit is contained in:
ALOKY 2026-04-04 07:09:20 +03:00 committed by GitHub
commit 59782779fd
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 }}