fix(lx-release): pin gh release create to this repo with --repo
The base-version step (c4fd73cd) adds an `upstream` remote (SagerNet/sing-box)
so git-describe can see the v1.14.0-alpha.* tags. But `gh release create` without
--repo resolves the target repo from the remotes and picked `upstream` →
HTTP 403 "Resource not accessible by integration" against
api.github.com/repos/SagerNet/sing-box/releases (the token has no rights there).
This is why rc.19's builds all succeeded but publish failed, while rc.18 (before
the upstream remote existed) published fine.
Pin --repo "${{ github.repository }}" so publish always targets this fork
regardless of what remotes the earlier steps added.
This commit is contained in:
@@ -394,7 +394,12 @@ jobs:
|
||||
case "${{ steps.ver.outputs.tag }}" in
|
||||
*-rc.*|*-alpha.*|*-beta.*) EXTRA="--prerelease" ;;
|
||||
esac
|
||||
# --repo is REQUIRED: the base-version step adds an `upstream` remote
|
||||
# (SagerNet/sing-box) so git-describe can see the alpha tags, and without
|
||||
# --repo `gh` resolves the target repo from the remotes and picks upstream
|
||||
# → HTTP 403 (the token has no rights there). Pin it to this repo.
|
||||
gh release create "${{ steps.ver.outputs.tag }}" dist/* \
|
||||
--repo "${{ github.repository }}" \
|
||||
--title "sing-box-lx ${{ steps.ver.outputs.version }}" \
|
||||
--notes-file notes.md \
|
||||
--target "$GITHUB_SHA" \
|
||||
|
||||
Reference in New Issue
Block a user