-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1001 Bytes
/
docs.yaml
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
name: Generate docs
on:
workflow_call:
inputs:
mix-env:
required: true
type: string
elixir-version:
required: true
type: string
otp-version:
required: true
type: string
jobs:
compile-docs:
runs-on: ubuntu-latest
steps:
- name: checkout the repository
uses: actions/checkout@v4
- name: setup deps and _build cache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/deps
${{ github.workspace }}/_build
key: ${{ runner.os }}-build-${{ inputs.mix-env }}-${{ hashFiles('mix.lock') }}
- name: setup elixir
uses: ./.github/actions/elixir_setup
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
- name: install apt packages
uses: ./.github/actions/os_setup
- name: generate docs
run: MIX_ENV=${{ inputs.mix-env }} mix docs