Merge pull request #3216 from Szymekk44/patch-1 #434
This file contains hidden or 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/checkout@v2.4.2 | |
| with: | |
| repository: CosmosOS/Cosmos | |
| path: Cosmos | |
| - name: Checkout IL2CPU | |
| uses: actions/checkout@v2.4.2 | |
| with: | |
| repository: CosmosOS/IL2CPU | |
| path: IL2CPU | |
| - name: Checkout XSharp | |
| uses: actions/checkout@v2.4.2 | |
| with: | |
| repository: CosmosOS/XSharp | |
| path: XSharp | |
| - name: Checkout Common | |
| uses: actions/checkout@v2.4.2 | |
| with: | |
| repository: CosmosOS/Common | |
| path: Common | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v2.0.0 | |
| 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 |