forked from thegrb93/StarfallEx
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.33 KB
/
doc_deploy.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
name: Build & Deploy Documentation
# On commits, build & deploy docs
on:
# Only run on commits from master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Clone docgen branch, run build_docs.sh in order to build sf_doc.json
- name: Build Docs
run: |
git clone -b docgen --single-branch https://github.com/thegrb93/StarfallEx.git docgen
chmod -R +xrw .
cd docgen
. ./build_docs.sh
cd ..
# Move Docs from ./docgen/sf_doc.json to ./out/sf_doc.json
- name: Move Docs
run: |
mkdir out
cp -f docgen/sf_doc.json out/
# Deploy to gh-pages
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_branch: gh-pages # Doesn't need to be explicit
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: ${{ github.event.head_commit.message }}
keep_files: true
disable_nojekyll: true