-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.78 KB
/
mkdocs.yml
File metadata and controls
64 lines (55 loc) · 1.78 KB
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
59
60
61
62
63
64
name: Publish docs via GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install asdf
uses: asdf-vm/actions/setup@v1
- name: Cache asdf tools
uses: actions/cache@v2
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }}
- name: Install required tools
run: |
asdf plugin-add mongodb https://github.com/junminahn/asdf-mongodb.git || true
cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true
asdf plugin-update --all
asdf install
asdf reshim
- name: Install python tools
run: |
pip install -r requirements.txt
asdf reshim
- name: Build the MkDocs site
run: |
make mk-build
- name: Attach SSH Private Key
uses: junminahn/action-ssh@v0.2.0
with:
encryption_key: ${{ secrets.ENCRYPTION_KEY }}
- name: Push the MkDocs site
run: |
rm -rf .git
cd site
touch .nojekyll
git init
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config commit.gpgsign false
git add .
git commit -m "deploy MkDocs site to github pages"
git branch -M gh-pages
git push --force --quiet git@github.com:express-toolkit/express-toolkit.github.io.git gh-pages
# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CONFIG_FILE: mkdocs.yml
# REQUIREMENTS: requirements.txt