From 3f572074658c60fe726228f24bc0f359005b4f2c Mon Sep 17 00:00:00 2001 From: Raghu Kaippully Date: Wed, 14 Apr 2021 15:04:03 +0530 Subject: [PATCH] Run CI for tags --- .github/workflows/ci.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3479dce..28e6138 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,9 +2,13 @@ name: Haskell CI on: push: - branches: [master] + branches: + - master + tags: + - v[0-9]+.[0-9]+.[0-9]+ pull_request: - branches: [master] + branches: + - master jobs: stack-build: @@ -58,7 +62,7 @@ jobs: - name: Package if: startsWith(github.ref, 'refs/tags/v') run: | - BIN="$(stack path --local-install-root)/bin/gamgee" + BIN="$(stack path --system-ghc --local-install-root)/bin/gamgee" PKG_NAME=gamgee-${{ steps.get-tag.outputs.tag }}-${{ runner.os }}.tar.gz cp $BIN . chmod +x ./gamgee @@ -69,9 +73,10 @@ jobs: - name: Release uses: ncipollo/release-action@v1 if: startsWith(github.ref, 'refs/tags/v') - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: allowUpdates: true artifactErrorsFailBuild: true artifacts: gamgee-${{ steps.get-tag.outputs.tag }}-${{ runner.os }}.tar.gz + token: ${{ secrets.ACCESS_TOKEN }} + omitBodyDuringUpdate: true + omitNameDuringUpdate: true