Merge pull request #192 from JaCraig/dependabot/github_actions/depend… #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Document Site Publish | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
publish-docs: | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'FastActivator.sln' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: [ '8.0.x' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK ${{ matrix.dotnet-version }} | |
uses: actions/[email protected] | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration $BUILD_CONFIG | |
- name: Run Speed Test | |
working-directory: FastActivator.Benchmarks/bin/Release/net8.0 | |
run: dotnet ./FastActivator.Benchmarks.dll --filter *FastVsActivator* | |
- run: dotnet tool update -g docfx | |
- run: docfx docfx_project/docfx.json | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docfx_project/_site |