Upgrades Statiq and re-enables docs publishing

Previous versions of Statiq had a bug with .NET 6 RC1. The latest has a workaround that allows publishing
This commit is contained in:
Phil Scott
2021-10-15 13:48:11 -04:00
committed by Patrik Svensson
parent 174d285035
commit 4d2d927caa
4 changed files with 2 additions and 5 deletions

52
.github/workflows/docs.yaml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Deploy Documentation
on:
workflow_dispatch:
push:
paths:
- 'docs/**'
- 'src/**'
- 'test/**'
- 'examples/**'
- '.github/**'
jobs:
###################################################
# DOCS
###################################################
build:
name: Deploy
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Publish
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd docs
dotnet run --configuration Release
dotnet run -- deploy