forked from InscryptionModding/InscryptionAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 1.24 KB
/
docs.yml
File metadata and controls
35 lines (26 loc) · 1.24 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
name: Documentation
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore Project
run: dotnet restore
- name: Add Mono Repository
run: sudo apt install gnupg ca-certificates; sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF; echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list; sudo apt update
- name: Install Mono
run: sudo apt install mono-runtime mono-devel msbuild
- name: Install DocFX
run: curl -LJ https://github.com/dotnet/docfx/releases/download/v2.59.0/docfx.zip -o docfx.zip; unzip -d docfx/ docfx.zip
- name: Generate Documentation
run: mono docfx/docfx.exe docs/docfx.json
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Documentation
path: docs/_site