Skip to content

Commit

Permalink
Foobar
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Sep 5, 2024
1 parent 9a31547 commit 6b72ab5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Build

on:
workflow_call:
inputs:
upload:
description: 'Whether to upload created artifacts to the current release'
default: false
required: false
type: boolean
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -29,3 +35,8 @@ jobs:
with:
name: blazecli-${{ matrix.target }}
path: bin/blazecli
- if: ${{ inputs.upload }} == 'true'
name: Upload release asset
run: |
mv bin/blazecli blazecli-${{ matrix.target }}
gh release upload assets blazecli-${{ matrix.target }}
2 changes: 2 additions & 0 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ jobs:
build-artifacts:
uses: ./.github/workflows/build-cli.yml
secrets: inherit
with:
upload: true

0 comments on commit 6b72ab5

Please sign in to comment.