-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (31 loc) · 1 KB
/
AccuLadder.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
name: Build, Generate Documentation, and Deploy
on:
push:
branches:
- main # Assuming you want to run this workflow on pushes to main
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup MSBuild Path
uses: microsoft/[email protected]
- name: Restore NuGet Packages
run: msbuild /t:restore
- name: Build Solution
run: msbuild /p:Configuration=Release
- name: Install DocFX
run: choco install docfx -y
- name: Generate Documentation
run: |
docfx ./docfx/docfx.json
# - name: Move Documentation to Subfolder
# run: |
# mkdir -p ./_site/root/AccuLadder
# cp -r ./_site/* ./_site/root/AccuLadder/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docfx/_site # Adjust if your DocFX output directory is different