-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (37 loc) · 963 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
cabal:
- "3.6.2.0"
ghc:
- "9.2.3"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1.2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Build
run: cabal install exe:tie --install-method=copy --overwrite-policy=always --installdir=out
- name: Test
run: ./out/tie --help
- name: Prepare archive
run: tar -zcvf ./${{ matrix.os }}.tar.gz -C out tie
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./${{ matrix.os }}.tar.gz