From 5e3ffda2cfe1bca1004ce80ff58ac222bddbdfb9 Mon Sep 17 00:00:00 2001 From: Laura Rodriguez Date: Wed, 4 May 2022 15:23:03 -0400 Subject: [PATCH] Add workflow to build and deploy docs. --- .github/workflows/docs_deployment.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/docs_deployment.yml diff --git a/.github/workflows/docs_deployment.yml b/.github/workflows/docs_deployment.yml new file mode 100644 index 000000000..d24ceab51 --- /dev/null +++ b/.github/workflows/docs_deployment.yml @@ -0,0 +1,41 @@ +name: DocFX Build and Deployment + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + generate-docs: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.24 + - name: Setup DocFX + # uses: crazy-max/ghaction-chocolatey@v1 + # with: + # args: install docfx + run: choco install --verbose docfx + + - name: Install dependencies + run: dotnet restore + + - name: DocFX Build + working-directory: docs + run: docfx docfx.json + continue-on-error: false + + - name: Deploy Docs to Github Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/gh-pages + keep_files: true +