Skip to content

Commit

Permalink
Run CI for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaippully committed Apr 14, 2021
1 parent 0677d76 commit 3f57207
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3f57207

Please sign in to comment.