fix(ci): add --repo flag to gh release upload after .git removal

The archive step removes .git before creating the tarball, but
gh release upload needs git context to resolve the repo. Pass
--repo explicitly to avoid "not a git repository" errors.
This commit is contained in:
SnapOtter
2026-06-08 16:07:23 +08:00
parent 6dcbb9f122
commit d43aa2f1b6
+1 -1
View File
@@ -130,7 +130,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ needs.release.outputs.new_version }}
run: gh release upload "v${VERSION}" "/tmp/${archive_name}" "/tmp/${archive_name}.sha256" --clobber
run: gh release upload "v${VERSION}" "/tmp/${archive_name}" "/tmp/${archive_name}.sha256" --clobber --repo snapotter-hq/SnapOtter
docker:
name: Build (${{ matrix.platform }})