From d7e2806e6667acabce07c980c2e09d4044a43132 Mon Sep 17 00:00:00 2001 From: Dmitry Shulyak Date: Fri, 13 Sep 2024 15:34:54 +0200 Subject: [PATCH] add stacksexport binary to releases --- .github/workflows/build.yml | 8 ++++++++ .github/workflows/release.yml | 16 ++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3891099..1056bb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,3 +29,11 @@ jobs: with: name: stacks-${{ matrix.target }} path: bin/stacks + - name: Build stacksexport binary + run: cargo install --path=stacksexport --root=. --target ${{ matrix.target }} + + - name: Upload stacksexport binary + uses: actions/upload-artifact@v4 + with: + name: stacksexport-${{ matrix.target }} + path: bin/stacksexport diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46b8599..3103b0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,9 +34,9 @@ jobs: release_name: Release ${{ github.ref_name }} draft: false prerelease: true - - name: archive binary + + - name: archive stacks binary run: tar -czvf stacks-x86_64-unknown-linux-gnu.tar.gz stacks-x86_64-unknown-linux-gnu/stacks - - name: upload stacks binary uses: actions/upload-release-asset@v1 env: @@ -46,4 +46,16 @@ jobs: asset_path: ./stacks-x86_64-unknown-linux-gnu.tar.gz asset_name: stacks-x86_64-unknown-linux-gnu.tar.gz asset_content_type: application/gzip + + - name: archive stacksexport binary + run: tar -czvf stacksexport-x86_64-unknown-linux-gnu.tar.gz stacksexport-x86_64-unknown-linux-gnu/stacksexport + - name: upload stacksexport binary + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./stacksexport-x86_64-unknown-linux-gnu.tar.gz + asset_name: stacksexport-x86_64-unknown-linux-gnu.tar.gz + asset_content_type: application/gzip \ No newline at end of file