Skip to content

Commit

Permalink
Fix actions version specificity and update to modern pages deployment (
Browse files Browse the repository at this point in the history
  • Loading branch information
PathogenDavid authored Feb 2, 2025
1 parent e836297 commit 0018884
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Build Solution
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Restore NuGet Packages
run: msbuild -t:restore src/Bonsai.PulsePal.sln

- name: Build Solution
run: msbuild src/Bonsai.PulsePal.sln /p:Configuration=Release
39 changes: 22 additions & 17 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
# Builds and publishes the documentation website to gh-pages branch
# Builds and publishes the documentation website
name: Build docs

on:
workflow_dispatch:

concurrency:
group: docs
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 MSBuild
uses: microsoft/setup-msbuild@v2

- name: Restore NuGet Packages
run: msbuild -t:restore src/Bonsai.PulsePal.sln

- name: Build Solution
run: msbuild src/Bonsai.PulsePal.sln /p:Configuration=Release

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

Expand All @@ -37,15 +46,11 @@ jobs:
- name: Build Documentation
working-directory: docs
run: .\build.ps1

- name: Checkout gh-pages
uses: actions/checkout@v4.1.1
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
uses: peaceiris/actions-gh-pages@v3.9.3

- name: Upload GitHub Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
force_orphan: true
path: docs/_site

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

0 comments on commit 0018884

Please sign in to comment.