From 95135f0bddb180163c408339a4dda6ca01f66b3a Mon Sep 17 00:00:00 2001 From: Stevan Andjelkovic Date: Tue, 22 Oct 2024 17:57:16 +0200 Subject: [PATCH] ci: again --- .github/workflows/main.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5ef78af..bd42eab 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 \ @@ -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 \