-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.03 KB
/
gh-pages.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
name: Github Pages
on:
push:
branches: [ master ]
jobs:
build:
name: Generate and publish
runs-on: ubuntu-latest
strategy:
matrix:
elixir: ["1.11.0"]
otp: ["23.0.3"]
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Compile dependencies
run: mix compile
- name: Generate documentation
run: mix docs
- name: Publish website
if: success()
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: doc
fqdn: "wumpex.dealloc.be"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}