From 6b72ab5c7ec5579ae3afc13d0cf1d1c4d1b4815c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Thu, 5 Sep 2024 13:40:17 -0700 Subject: [PATCH] Foobar --- .github/workflows/build-cli.yml | 11 +++++++++++ .github/workflows/publish-cli.yml | 2 ++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 0afbc2d7..eb4bc470 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml index 51717cad..1df01d77 100644 --- a/.github/workflows/publish-cli.yml +++ b/.github/workflows/publish-cli.yml @@ -58,3 +58,5 @@ jobs: build-artifacts: uses: ./.github/workflows/build-cli.yml secrets: inherit + with: + upload: true