Skip to content

Commit

Permalink
Patch release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skykanin committed Mar 11, 2021
1 parent 3fb9bf1 commit f6c31a0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
include:
- os: ubuntu-latest
args: --best --lzma
strip: true
strip: false
- os: macOS-latest
args: --best
strip: true
Expand Down Expand Up @@ -89,16 +89,21 @@ jobs:
run: |
cabal build exe:dg
- if: matrix.os == 'windows-latest'
name: Set extension to .exe on Windows
run: |
echo "EXT=.exe" >> $GITHUB_ENV
- name: Set binary path name
run: |
echo "BINARY_PATH=$(find dist-newstyle \( -name 'dg' -o -name 'dg.exe' \) -type f)" >> $GITHUB_ENV
- name: Compress binaries using UPX
uses: svenstaro/upx-action@v2
with:
file: ${{ env.BINARY_PATH }}
args: ${{ matrix.args }}
strip: ${{ matrix.strip }}
# - name: Compress binaries using UPX
# uses: svenstaro/upx-action@v2
# with:
# file: ${{ env.BINARY_PATH }}
# args: ${{ matrix.args }}
# strip: ${{ matrix.strip }}

- name: Load Release URL File from release job
uses: actions/download-artifact@v2
Expand Down

0 comments on commit f6c31a0

Please sign in to comment.