Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -28,7 +25,7 @@ jobs:
run: dotnet tool install -g docfx

- name: Build Libraries
run: cd sampsharp-src && ./build.sh component
run: cd sampsharp-src && ./build.sh libraries

- name: Build documentation
run: docfx docfx.json
Expand All @@ -40,7 +37,6 @@ jobs:

deploy:
needs: build
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
runs-on: ubuntu-latest

permissions:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate Docs Build

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'

- name: Install DocFX
run: dotnet tool install -g docfx

- name: Build Libraries
run: cd sampsharp-src && ./build.sh libraries

- name: Build documentation
run: docfx docfx.json
Loading