-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 946 Bytes
/
docs.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
# Builds and publishes the documentation website to gh-pages branch
name: Build docs
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Build static site content using DocFX
- uses: nikeee/[email protected]
name: Build Documentation
with:
args: docs/docfx.json
- name: Checkout gh-pages
uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
run: |
cd gh-pages
rm -rf *
touch .nojekyll
cp -a ../docs/_site/. .
git config user.name github-actions
git config user.email [email protected]
git add .
git commit --reset-author --amend -m "Deploy docs website"
git push --force origin gh-pages