diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ac95ecb..9c9eade9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,17 +13,17 @@ jobs: 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 - + - name: Restore NuGet Packages run: dotnet restore Bonsai.ML.sln - name: Build Solution - run: dotnet build Bonsai.ML.sln -c Release \ No newline at end of file + run: dotnet build Bonsai.ML.sln -c Release diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2956af1a..ccfb614c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,9 +1,18 @@ -# 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_docs: runs-on: windows-latest @@ -14,31 +23,31 @@ jobs: submodules: true - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v4.0.0 + uses: actions/setup-dotnet@v4 with: dotnet-version: 8.x - + - name: Restore NuGet Packages run: dotnet restore Bonsai.ML.sln - name: Build Solution run: dotnet build Bonsai.ML.sln -c Release - + - name: Setup DocFX run: dotnet tool restore - name: Setup Bonsai working-directory: .bonsai run: ./Setup.ps1 - + - name: Build Documentation working-directory: docs run: ./build.ps1 - - 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 - publish_branch: gh-pages - force_orphan: true \ No newline at end of file + path: docs/_site + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63a195b3..6766d9ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,15 +14,15 @@ jobs: submodules: true - name: Setup Python 3.10 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: 3.10 - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v4.0.0 + uses: actions/setup-dotnet@v4 with: dotnet-version: 8.x - + - name: Restore NuGet Packages run: dotnet restore Bonsai.ML.sln