Merge branch 'master' into docs #61
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: Publish Documentation | |
on: | |
push: | |
branches: | |
- docs | |
jobs: | |
publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Chekout | |
uses: actions/checkout@v3 | |
- name: Dotnet Setup | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.x | |
- uses: nuget/setup-nuget@v1 | |
name: Nuget Setup | |
- name: Nuget Restore | |
run: nuget restore Nautilus.sln | |
- name: Build Project | |
run: dotnet build Nautilus.sln -c SN.STABLE | |
- name: Install DocFX | |
run: dotnet tool update -g docfx | |
- name: Build documentation | |
run: docfx Nautilus/docfx.json | |
- name: Build documentation x2 | |
run: docfx Nautilus/docfx.json | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: Nautilus/_site |