From fcb9ab8a7b015ddaae72e87973f1d91a219b456a Mon Sep 17 00:00:00 2001 From: Tim Potze Date: Fri, 15 May 2026 00:12:01 +0200 Subject: [PATCH 1/2] Cleanup workflow --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0fb9175..31899bc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,7 @@ jobs: deploy: needs: build - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') + if: github.event_name == 'push' && (github.ref == 'refs/heads/main') runs-on: ubuntu-latest permissions: From abb4156c17ab1423a719dcab629006d324cfbce2 Mon Sep 17 00:00:00 2001 From: Tim Potze Date: Fri, 15 May 2026 00:14:11 +0200 Subject: [PATCH 2/2] fixes --- .github/workflows/deploy.yml | 6 +----- .github/workflows/validate.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 31899bc..95cd605 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - branches: - - main jobs: build: @@ -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 @@ -40,7 +37,6 @@ jobs: deploy: needs: build - if: github.event_name == 'push' && (github.ref == 'refs/heads/main') runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..4945124 --- /dev/null +++ b/.github/workflows/validate.yml @@ -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