-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1012 Bytes
/
Copy pathdocfx.yml
File metadata and controls
43 lines (38 loc) · 1012 Bytes
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: Deploy Docs
on:
push:
tags:
- '*'
branches:
- 'master'
paths:
- 'docs/**'
- 'src/**'
workflow_dispatch:
inputs: {}
jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Setup DocFX
run: dotnet tool install -g docfx --version 2.78.5
- name: Build Gommon docs
run: docfx docs/docfx.json
- name: Push to the gh-pages branch
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.DOCFX_GITHUB_TOKEN }}
with:
source-directory: 'docs/generated'
destination-github-username: 'GreemDev'
destination-repository-name: 'Gommon'
user-name: "GitHub Actions on behalf of GreemDev"
user-email: greemdev@ryujinx.app
target-branch: gh-pages
target-directory: docs