Merge pull request #2931 from CosmosOS/zarlo/docs/1 #408
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: Build Docs | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Cosmos | |
uses: actions/[email protected] | |
with: | |
repository: CosmosOS/Cosmos | |
path: Cosmos | |
- name: Checkout IL2CPU | |
uses: actions/[email protected] | |
with: | |
repository: CosmosOS/IL2CPU | |
path: IL2CPU | |
- name: Checkout XSharp | |
uses: actions/[email protected] | |
with: | |
repository: CosmosOS/XSharp | |
path: XSharp | |
- name: Checkout Common | |
uses: actions/[email protected] | |
with: | |
repository: CosmosOS/Common | |
path: Common | |
- name: Setup dotnet | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 6.0.x | |
- name: Install DocFX | |
shell: pwsh | |
run: choco install docfx | |
- name: Build Docs | |
shell: pwsh | |
run: docfx ./Cosmos/Docs/docfx.json | |
continue-on-error: false | |
- name: Publish to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GH_PAGES }} | |
external_repository: CosmosOS/cosmosos.github.io | |
publish_branch: master | |
publish_dir: ./Cosmos/Docs/_site |