Skip to content

Publish Documentation #45

Publish Documentation

Publish Documentation #45

Workflow file for this run

name: Publish Documentation
on:
workflow_dispatch:
env:
WYAM_ACCESS_TOKEN: ${{ secrets.API_TOKEN }}
# secrets.GITHUB_TOKEN has no permissions to push, sadly.
WYAM_DEPLOY_BRANCH: 'gh-pages'
WYAM_DEPLOY_REMOTE: "${{ github.event.repository.html_url }}"
jobs:
cake:
runs-on: windows-2022
steps:
- name: checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with:
# wyam needs 2.1
# kudusync needs 3.1
# cake 2.3 needs 6.0
# .NET 10 to build
dotnet-version: |
2.1
3.1
6.0
10.0
- name: Cache Tools
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: tools
key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }}
- name: Publishing documentaiton
uses: cake-build/cake-action@d218f1133bb74a1df0b08c89cfd8fc100c09e1a0 # v3
with:
script-path: recipe.cake
target: Force-Publish-Documentation
cake-version: tool-manifest