Skip to content

Commit

Permalink
fixup! cli: Attach statically build binary to release
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Sep 5, 2024
1 parent ac45c19 commit dc58eec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Build blazecli
on:
workflow_call:
inputs:
upload:
description: 'Whether to upload created artifacts to the current release'
default: false
upload-release:
description: 'The release to upload artifacts to, if any'
default: ''
required: false
type: boolean
type: string
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -35,10 +35,10 @@ jobs:
with:
name: blazecli-${{ matrix.target }}
path: bin/blazecli
- if: ${{ inputs.upload }}
- if: ${{ inputs.upload-release != '' }}
name: Upload release asset
env:
GH_TOKEN: ${{ github.token }}
run: |
mv bin/blazecli blazecli-${{ matrix.target }}
gh release upload assets blazecli-${{ matrix.target }}
gh release upload assets ${{ inputs.upload-release }} blazecli-${{ matrix.target }}
3 changes: 2 additions & 1 deletion .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
\"make_latest\":\"false\"
}"
build-artifacts:
needs: [publish, version]
uses: ./.github/workflows/build-cli.yml
secrets: inherit
with:
upload: true
upload-release: cli-v${{ needs.version.outputs.version }}

0 comments on commit dc58eec

Please sign in to comment.