Skip to content

Commit 1ce7a40

Browse files
author
András Kurai
committed
add workflow for publishing docfx to github pages
1 parent 5582829 commit 1ce7a40

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish To GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feature/add-docfx
8+
9+
jobs:
10+
Deploy:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Build DocFX
18+
shell: pwsh
19+
run: ./build.ps1 BuildDocs --unity-email $env:UNITY_EMAIL --unity-password $env:UNITY_PASSWORD --unity-serial $env:UNITY_SERIAL --is-ci
20+
21+
- name: Deploy to GitHub Pages
22+
uses: crazy-max/ghaction-github-pages@v2
23+
with:
24+
target_branch: gh-pages
25+
build_dir: Documentation/_site
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)