-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (40 loc) · 1.2 KB
/
docs.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
name: Documentation
on:
push:
branches:
- master
jobs:
test:
name: Docs
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/[email protected]
- name: Copy config templates
working-directory: "config"
run: |
cp dev.local.exs.example dev.local.exs
cp test.local.exs.example test.local.exs
- name: Set up Elixir
uses: actions/[email protected]
with:
elixir-version: "1.12.2" # Define the elixir version [required]
otp-version: "24.0" # Define the OTP version [required]
experimental-otp: true
- name: Restore deps cache
uses: actions/[email protected]
with:
path: |
**/_build
**/deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Generate docs
run: mix docs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: doc # The folder the action should deploy.