Skip to content
This repository was archived by the owner on Mar 1, 2021. It is now read-only.

Commit 08663ce

Browse files
committed
(GH-38) Workflow for forcing publish of docs
This can be used on those occasions when building/publishing the doc doesn't work during normal execution.
1 parent 56039d3 commit 08663ce

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publishDocs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Documentation
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
WYAM_ACCESS_TOKEN: ${{ secrets.API_TOKEN }}
8+
# secrets.GITHUB_TOKEN has no permissions to push, sadly.
9+
WYAM_DEPLOY_BRANCH: 'gh-pages'
10+
WYAM_DEPLOY_REMOTE: "${{ github.event.repository.html_url }}"
11+
12+
jobs:
13+
cake:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v2.3.4 #https://github.com/actions/checkout
19+
with:
20+
fetch-depth: 0 # GitVersion is somewhat irritated when fetch-depth is "1"....
21+
ref: ${{ github.event.ref }}
22+
23+
- name: Cache Tools
24+
uses: actions/cache@v2
25+
with:
26+
path: tools
27+
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}
28+
29+
- name: Publishing documentation
30+
uses: cake-build/cake-action@v1
31+
with:
32+
script-path: recipe.cake
33+
target: Force-Publish-Documentation
34+
verbosity: Diagnostic
35+
cake-version: 0.38.5
36+
cake-bootstrap: true

0 commit comments

Comments
 (0)