Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Fix unnecessary GitHub Actions version specificity and update to modern GitHub Pages deployment #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
# Builds and publishes the documentation website to gh-pages branch
# Builds and publishes the documentation website
name: Build docs

on:
workflow_dispatch:

concurrency:
group: build
cancel-in-progress: true

permissions:
# Both required by actions/deploy-pages
pages: write
id-token: write

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4
with:
submodules: true

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4.0.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

Expand All @@ -27,15 +36,9 @@ jobs:

- name: Build Documentation
run: .\build.ps1

- name: Checkout gh-pages
uses: actions/[email protected]
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _site
force_orphan: true

- name: Upload GitHub Pages Artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4