Update docs #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update docs | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: WaaS | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: ./docs/yarn.lock | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Run docfx | |
run: dotnet docfx | |
- name: Generate markdown | |
run: dotnet run --project DocFxMarkdownGen/DocFxMarkdownGen.csproj | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
working-directory: docs | |
- name: Build website | |
run: yarn build | |
working-directory: docs | |
- name: Upload Build Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/build | |
deploy: | |
name: Deploy to GitHub Pages | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |