From 836d37de7c24694320bfd19d15776519aba3a729 Mon Sep 17 00:00:00 2001 From: "stakpak[bot]" <167999308+stakpak[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:04:42 +0000 Subject: [PATCH] adds Stakpak config file --- .github/workflows/build-and-release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 81c288b..78d2d01 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -64,6 +64,17 @@ jobs: cd target/${{ matrix.target }}/release ${{ contains(matrix.os, 'windows') && '7z a ../../../${{ matrix.artifact_name }}.zip ${{ env.BINARY_NAME }}.exe' || 'tar czf ../../../${{ matrix.artifact_name }}.tar.gz ${{ env.BINARY_NAME }}' }} + - name: Prepare binary + if: startsWith(github.ref, 'refs/tags/') + shell: bash + run: | + cd target/${{ matrix.target }}/release + if [ "$RUNNER_OS" == "Windows" ]; then + 7z a ../../../${{ matrix.artifact_name }}.zip ${{ env.BINARY_NAME }}.exe + else + tar czf ../../../${{ matrix.artifact_name }}.tar.gz ${{ env.BINARY_NAME }} + fi + - name: Upload artifact if: startsWith(github.ref, 'refs/tags/') uses: actions/upload-artifact@v4