Skip to content

Commit ff5b6d8

Browse files
committed
CLI release
1 parent 2eb58f2 commit ff5b6d8

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/cli-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,18 @@ jobs:
201201
- name: Create release
202202
id: create_release
203203
run: |
204+
# compress the artifacts
205+
tar -czf modcli-linux-amd64.tar.gz -C ./artifacts/modcli-linux-amd64 .
206+
zip -r modcli-windows-amd64.exe.zip ./artifacts/modcli-windows-amd64.exe
207+
tar -czf modcli-darwin-arm64.tar.gz -C ./artifacts/modcli-darwin-arm64 .
208+
204209
gh release create ${{ needs.prepare.outputs.tag }} \
205210
--title "Modular CLI ${{ needs.prepare.outputs.version }}" \
206211
--notes-file changelog.md \
207212
--repo ${{ github.repository }} \
208-
--latest=false './artifacts/modcli-linux-amd64/modcli#modcli-linux-amd64' \
209-
'./artifacts/modcli-windows-amd64.exe/modcli.exe#modcli-windows-amd64.exe' \
210-
'./artifacts/modcli-darwin-arm64/modcli#modcli-darwin-arm64'
213+
--latest=false './modcli-linux-amd64.tar.gz#modcli-linux-amd64' \
214+
'./modcli-windows-amd64.exe.zip#modcli-windows-amd64.exe' \
215+
'./modcli-darwin-arm64.tar.gz#modcli-darwin-arm64'
211216
212217
git tag modcli/${{ needs.prepare.outputs.version }} $GITHUB_SHA --
213218
git push origin modcli/${{ needs.prepare.outputs.version }}

0 commit comments

Comments
 (0)