Skip to content

Commit

Permalink
more release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco committed Jun 17, 2024
1 parent d8f25c5 commit 2b4dfdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-seas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,20 @@ jobs:
result-encoding: string

- name: zip the sea binary
if: matrix.os != 'windows-latest'
run: zip -r hdcli-${{ steps.set-os-nice-name.outputs.result }}-.zip ${{ steps.set-executable-name.outputs.result }}
working-directory: ./dist/apps/cli
shell: bash

- name: zip the sea binary
if: matrix.os == 'windows-latest'
run: Compress-Archive -Path ${{ steps.set-executable-name.outputs.result }} -Destination hdcli-${{ steps.set-os-nice-name.outputs.result }}-.zip
working-directory: dist\apps\cli
shell: pwsh

- name: cache the zip
uses: actions/cache/save@v4
with:
key: hdcli-sea-${{ steps.set-os-nice-name.outputs.result }}-zip-${{ github.run_id }}
path: ./dist/apps/cli/${{ steps.set-executable-name.outputs.result }}-${{ steps.set-os-nice-name.outputs.result }}.zip
path: ./dist/apps/cli/hdcli-${{ steps.set-os-nice-name.outputs.result }}.zip
enableCrossOsArchive: true
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,21 @@ jobs:
with:
key: hdcli-sea-linux-latest-zip-${{ github.run_id }}
path: ./dist/apps/cli/hdcli-linux.zip
enableCrossOsArchive: true

- name: restore the macos zip from cache
uses: actions/cache/save@v4
with:
key: hdcli-sea-macos-zip-${{ github.run_id }}
path: ./dist/apps/cli/hdcli-macos.zip
enableCrossOsArchive: true

- name: restore the windows zip from cache
uses: actions/cache/save@v4
with:
key: hdcli-sea-windows-zip-${{ github.run_id }}
path: ./dist/apps/cli/hdcli.exe-windows.zip
enableCrossOsArchive: true

- name: create release
id: create-release
Expand Down

0 comments on commit 2b4dfdb

Please sign in to comment.