Skip to content

Commit

Permalink
[CI] Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lierdakil committed Apr 9, 2020
1 parent d5473d2 commit 048a143
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:

release:
needs: [windows, macos]
if: contains(github.ref, 'tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v1
Expand All @@ -106,20 +107,12 @@ jobs:
- name: Unpack assets
run: |
unxz windows-build/parser-generator.exe.xz
- name: Get Version
id: get_version
run: |
chmod +x linux-build/parser-generator
VERSION="$(linux-build/parser-generator --version)"
echo ::set-output name=version::"$VERSION"
- name: Repack assets
run: |
mkdir assets
tar cJf assets/parser-generator-linux-${{github.sha}}.tar.xz -C linux-build parser-generator parser-generator.1
tar cJf assets/parser-generator-macos-${{github.sha}}.tar.xz -C macos-build parser-generator
7z a assets/parser-generator-windows-${{github.sha}}.7z windows-build/parser-generator.exe
- name: Create Release
if: contains(github.ref, 'tags/v')
id: create_release
uses: actions/create-release@v1
env:
Expand Down

0 comments on commit 048a143

Please sign in to comment.