Skip to content

Commit 1342e54

Browse files
committed
ci: CLI binaries release
1 parent 3090848 commit 1342e54

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ jobs:
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262

63+
- name: Release CLI binaries
64+
if: ${{ steps.changeset.outputs.published == 'true' && contains(steps.changeset.outputs.publishedPackages.*.name, '@cartesi/cli') }}
65+
run: |
66+
for f in cartesi-*; do tar -czf "$f.tar.gz" "$f"; done
67+
VERSION=$(jq -r '.[] | select(.name=="@cartesi/cli") | .version' <<< '${{ steps.changeset.outputs.publishedPackages }}')
68+
TAG="@cartesi/cli@${VERSION}"
69+
gh release upload "$TAG" cartesi-*.tar.gz
70+
working-directory: ./apps/cli/bin
71+
6372
- name: Build SDK
6473
if: ${{ steps.changeset.outputs.published == 'true' && contains(steps.changeset.outputs.publishedPackages.*.name, '@cartesi/sdk') }}
6574
uses: ./.github/workflows/sdk.yaml

0 commit comments

Comments
 (0)