Skip to content

Commit 98a4ef5

Browse files
anandgupta42claude
andcommitted
fix: remove redundant gh release upload from build step
The github-release job already downloads build artifacts and uploads them via softprops/action-gh-release. The gh release upload in build.ts was racing against release creation and failing with "release not found". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9ac21d0 commit 98a4ef5

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
ALTIMATE_CLI_RELEASE: "1"
3333
GH_REPO: ${{ env.GH_REPO }}
3434
MODELS_DEV_API_JSON: test/tool/fixtures/models-api.json
35-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3635

3736
- name: Upload build artifacts
3837
uses: actions/upload-artifact@v4

packages/altimate-code/script/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ if (Script.release) {
229229
await $`zip -r ${archivePath}.zip *`.cwd(`dist/${key}/bin`)
230230
}
231231
}
232-
await $`gh release upload v${Script.version} ./dist/*.zip ./dist/*.tar.gz --clobber --repo ${process.env.GH_REPO}`
232+
// Archives are uploaded by the github-release workflow job via softprops/action-gh-release
233233
}
234234

235235
export { binaries }

0 commit comments

Comments
 (0)