diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89aa9c72..08e1383c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,6 +103,9 @@ jobs: - name: Magic cache uses: DeterminateSystems/magic-nix-cache-action@main - - name: Build Kardinal CLI images + - name: Build cli run: | - nix build ./#cross-compiled-cli.x86_64-linux.${{ matrix.os }}.${{ matrix.arch }} --no-link --print-out-paths + path=$(nix build ./#cross-compiled-cli.x86_64-linux.${{ matrix.os }}.${{ matrix.arch }} --no-link --print-out-paths) + binout="/tmp/kardinal-${{ matrix.os }}-${{ matrix.arch }}" + mv $path $binout + ls -lah $binout diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 59e9edd1..9b13c810 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -47,20 +47,12 @@ jobs: - name: Magic cache uses: DeterminateSystems/magic-nix-cache-action@main - - name: Build Kardinal CLI images - id: build-cli - shell: bash - run: | - path=$(nix build ./#cross-compiled-cli.x86_64-linux.${{ matrix.os }}.${{ matrix.arch }} --no-link --print-out-paths) - mv $path /tmp/kardinal-${{ matrix.os }}-${{ matrix.arch }} - echo "path=/tmp/kardinal-${{ matrix.os }}-${{ matrix.arch }}" >> $GITHUB_OUTPUT - - - name: Access it - run: | - echo "the secret number is ${{ steps.build-cli.outputs.path }}" - - - name: Upload Release Artifact + - name: Upload Release CLI Artifact if: ${{ needs.release-please.outputs.release_created }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release upload ${{ needs.release-please.outputs.tag_name }} ${{ steps.build-cli.outputs.path }} + run: | + path=$(nix build ./#cross-compiled-cli.x86_64-linux.${{ matrix.os }}.${{ matrix.arch }} --no-link --print-out-paths) + binout="/tmp/kardinal-${{ matrix.os }}-${{ matrix.arch }}" + mv $path $binout + gh release upload ${{ needs.release-please.outputs.tag_name }} $binout