Skip to content

Commit

Permalink
ci: again
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Oct 22, 2024
1 parent 8201343 commit 95135f0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ jobs:
# run: cabal haddock all
#

- name: Create new git tag, if merge to main and .cabal version is bumped
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: sol/haskell-autotag@v1
id: autotag

- name: Build static binary
run: |
${{ env.cabal }} build exe:spex exe:spex-demo-petstore \
Expand All @@ -192,16 +197,11 @@ jobs:
- name: Compress binaries
run: |
docker run \
--volume "${{ github.workspace }}/bin":/mnt/ \
--entrypoint=upx \
--volume "${{ github.workspace }}/bin":/mnt \
--entrypoint=upx \
ghcr.io/spex-lang/static-build:9.6.6 \
--best -q /mnt/spex
- name: Create new git tag, if merge to main and .cabal version is bumped
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: sol/haskell-autotag@v1
id: autotag

- name: Release
run: |
gh release create --draft --notes-file=CHANGELOG.md \
Expand Down

0 comments on commit 95135f0

Please sign in to comment.