From e3c47fbecf1503f25e475a0abb375efa204565cd Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Tue, 29 Aug 2023 16:51:21 -0500 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8349e6b5..42f8afd6 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -65,13 +65,6 @@ jobs: - name: Run Test run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings - - name: Generate Coverage - uses: danielpalme/ReportGenerator-GitHub-Action@5.1.24 - with: - reports: "${{github.workspace}}/test/*/TestResults/*/coverage.info" - targetdir: ${{env.BUILD_PATH}} - reporttypes: lcov - - name: Report Coverage if: success() uses: coverallsapp/github-action@v2 @@ -98,12 +91,11 @@ jobs: if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) run: docfx docs/docfx.json - - name: Deploy Documentation - if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) - uses: peaceiris/actions-gh-pages@v3 + - name: Upload Documentation + uses: actions/upload-pages-artifact@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/_site + name: github-pages + path: "docs/_site/" deploy: runs-on: ubuntu-latest @@ -137,3 +129,21 @@ jobs: echo "${0##*/}": Pushing $package... dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate done + + pages: + runs-on: ubuntu-latest + needs: build + if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) + + permissions: + pages: write + id-token: write + + steps: + - name: Deploy Documentation + id: deployment + uses: actions/deploy-pages@v2 + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }}