Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Aug 29, 2023
1 parent 2596c1b commit e3c47fb
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/dotnet.yml
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit e3c47fb

Please sign in to comment.