-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (37 loc) · 1.06 KB
/
publishdocs.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
name: Publish Documentation
on:
workflow_dispatch:
jobs:
publish-docs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
WYAM_DEPLOY_REMOTE: "${{ github.event.repository.html_url }}"
WYAM_DEPLOY_BRANCH: "gh-pages"
runs-on: ubuntu-22.04
steps:
- name: Checkout the requested branch
uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.event.ref }}
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
2.1.x
5.0.x
6.0.x
7.0.x
- name: Cache Tools
uses: actions/[email protected]
with:
path: tools
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}
- name: Publishing documentaiton
uses: cake-build/cake-action@v1
with:
script-path: recipe.cake
target: Force-Publish-Documentation
verbosity: Diagnostic
cake-version: tool-manifest