-
Notifications
You must be signed in to change notification settings - Fork 157
51 lines (41 loc) · 1.13 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
# This workflow executes the various RepoSense tests
name: GitHub Pages
on:
push:
branches:
- master
jobs:
deploy-gh-pages:
name: Deploy MarkBind to GitHub Pages
runs-on: ubuntu-latest
env:
NODE_VERSION: "lts/*"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Set up Node caching
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Graphviz
run: sudo apt-get -y install graphviz
- name: Install MarkBind CLI
run: npm i -g markbind-cli
- name: Build MarkBind website
run: cd docs && markbind build --baseUrl /RepoSense
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs/_site
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}