Skip to content

Commit 234bdba

Browse files
committed
ci: upload binaries to GitHub releases
1 parent 2234f22 commit 234bdba

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,24 @@ jobs:
5555
fi
5656
echo "Running: ${CMD}"
5757
${CMD}
58+
59+
- name: Upload binaries to GitHub Release
60+
if: github.event_name == 'release'
61+
env:
62+
GH_TOKEN: ${{ github.token }}
63+
run: |
64+
# Rename binaries to match expected download names
65+
cp binaries/codemachine-linux-x64/codemachine codemachine-linux-x64
66+
cp binaries/codemachine-linux-arm64/codemachine codemachine-linux-arm64
67+
cp binaries/codemachine-darwin-arm64/codemachine codemachine-darwin-arm64
68+
cp binaries/codemachine-darwin-x64/codemachine codemachine-darwin-x64
69+
cp binaries/codemachine-windows-x64/codemachine.exe codemachine-windows-x64.exe
70+
71+
# Upload to release
72+
gh release upload ${{ github.event.release.tag_name }} \
73+
codemachine-linux-x64 \
74+
codemachine-linux-arm64 \
75+
codemachine-darwin-arm64 \
76+
codemachine-darwin-x64 \
77+
codemachine-windows-x64.exe \
78+
--clobber

0 commit comments

Comments
 (0)