mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
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:
parent
e4fd4d9ae6
commit
062209af5e
1 changed files with 14 additions and 0 deletions
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue