forked from Lachee/discord-rpc-csharp
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.13 KB
/
documentation.yml
File metadata and controls
51 lines (43 loc) · 1.13 KB
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
46
47
48
49
50
51
name: Create Documentation 📚
on:
push:
branches:
- master
jobs:
# Build the documentation
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copy Files
run: |
cp README.md Docfx/index.md
cp -r Resources Docfx/Resources
- uses: nunit/docfx-action@v4.1.0
name: Build Documentation
with:
args: Docfx/docfx.json
- name: Upload site artifact
uses: actions/upload-artifact@v4
with:
name: Documentation
path: _site
# Deploy the generated documentation to the gh-pages branch
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Download the generated documentation
- name: Download site artifact
uses: actions/download-artifact@v4
with:
name: Documentation
path: docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs