-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 939 Bytes
/
blank.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
# DocFx Build and Deploy
name: DocFx
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
defaults:
run:
working-directory: docs
jobs:
Build_DocFx :
runs-on: ubuntu-latest
name: BuildDocs
steps:
- uses: actions/checkout@v2.4.0
# ...
- run: echo $GITHUB_PATH
- run: ls
- uses: nikeee/docfx-action@v1.0.0
name: Build Documentation
with:
args: build ./docs/docfx.json
# Publish generated site using GitHub Pages
- uses: maxheld83/ghpages@master
name: Publish Documentation on GitHub Pages
env:
BUILD_DIR: docs/_site # docfx's default output directory is _site
GH_PAT: ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpages