From 77ae1b331527444f534e3798996aa521a37624ea Mon Sep 17 00:00:00 2001 From: Kraaven <106032882+Kraaven@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:08:40 +0530 Subject: [PATCH] Update test.yaml --- .github/workflows/test.yaml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f2c9e97..45d9e88 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,22 +22,27 @@ concurrency: cancel-in-progress: false jobs: - # Single deploy job since we're just deploying - deploy: + publish-docs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + - name: Checkout + uses: actions/checkout@v3 + - name: Dotnet Setup + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.x + + - run: dotnet tool install --global docfx --version 2.75.0 + - run: docfx Docs/docfx.json + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: 'Docs/_site' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4