Skip to content

Commit

Permalink
ci: outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
pxseu committed Jul 24, 2022
1 parent 0767cb8 commit 7462b71
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.name }}
steps:
- name: Checkout the repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -100,20 +102,20 @@ jobs:
run: |
cd target/${{ matrix.target }}/release
strip hop.exe
7z a ../../../hop-${{ needs.create-release.outputs.tag.name }}-${{ matrix.target }}.zip hop.exe
7z a ../../../hop-${{ needs.create-release.outputs.tag }}-${{ matrix.target }}.zip hop.exe
cd -
- name: Prepare binaries [*nix]
if: matrix.os != 'windows-latest'
run: |
cd target/${{ matrix.target }}/release
strip hop || true
tar czvf ../../../hop-${{ needs.create-release.outputs.tag.name }}-${{ matrix.target }}.tar.gz hop
tar czvf ../../../hop-${{ needs.create-release.outputs.tag }}-${{ matrix.target }}.tar.gz hop
cd -
- name: Upload release archive
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.create-release.outputs.tag.name }}
files: hop-${{ needs.create-release.outputs.tag.name }}-${{ matrix.target }}*
tag_name: ${{ needs.create-release.outputs.tag }}
files: hop-${{ needs.create-release.outputs.tag }}-${{ matrix.target }}*

0 comments on commit 7462b71

Please sign in to comment.