-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (47 loc) · 1.24 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
49
50
51
52
53
54
55
name: Docs on GitHub pages
on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}-docs
cancel-in-progress: true
env:
ELIXIR_VERSION: 1.13
OTP_VERSION: 24.2
TOKENIZERS_BUILD: "true"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
native/ex_tokenizers/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: erlef/setup-beam@v1
with:
otp-version: "${{ env.OTP_VERSION }}"
elixir-version: "${{ env.ELIXIR_VERSION }}"
- run: mix deps.get
- run: mix docs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: doc