-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 1.45 KB
/
ci-ubuntu.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build on Ubuntu
on:
push:
branches:
- source
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.10.1.0"]
ghc: ["9.2.7"]
steps:
- name: Install imagemagick and ghostscript
run: sudo apt-get install -y imagemagick ghostscript
- name: Update the imagemagick policy
run: sudo sed -i_bak 's/rights="none" pattern="PDF"/rights="read | write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
#- name: Test fucking config
# run: cat /etc/ImageMagick-6/policy.xml
# Install haskell and friends
- name: Install dependencies
uses: haskell/actions/setup@v1
with:
ghc-version: '${{ matrix.ghc }}'
cabal-version: '${{ matrix.cabal }}'
# Cache cabal and the blog
- name: Cache ~/.cabal/store and dist-newstyle
uses: actions/cache@v2
with:
path: |
~/.cabal/store
~/dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}
# Get the sources
- name: Checkout site
uses: actions/checkout@v2
# Do the build
- name: Build site
run: |
cabal build
cabal exec artem-blog build
# Copy the actual html
- name: Deploy HTML
uses: JamesIves/[email protected]
with:
branch: master
folder: _site
git-config-name: Github Actions