Skip to content

Commit

Permalink
add stacksexport binary to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak committed Sep 13, 2024
1 parent afabef9 commit d7e2806
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit d7e2806

Please sign in to comment.