Deploy webpage #87
Workflow file for this run
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: Help Docs | |
on: | |
workflow_run: | |
workflows: [Unit Test] | |
types: [completed] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Create docs | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: moon-dev/Library | |
key: Library-Moon | |
restore-keys: | | |
Library- | |
- uses: game-ci/unity-builder@v4 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_CI_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_CI_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_CI_PASSWORD }} | |
with: | |
targetPlatform: StandaloneWindows | |
projectPath: moon-dev/ | |
buildMethod: UnityBuilderAction.BuildScript.Build | |
- name: Upload site artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: files | |
path: | | |
moon-dev/**.csproj | |
moon-dev/**.sln | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
container: unityci/editor:ubuntu-2022.3.10f1-linux-il2cpp-2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Download the generated documentation | |
- name: Download site artifact | |
uses: actions/download-artifact@v4 | |
with: | |
path: moon-dev | |
name: files | |
- run : | | |
ls moon-dev | |
- name: Dotnet Setup | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x | |
- name : Check Version | |
run : dotnet tool list --global | |
- name: Setup Docfx | |
run: dotnet tool install --global docfx --version 2.73.0 | |
- name: Build Site | |
run: docfx docs/docfx.json | |
- name: Upload site artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: _site | |
path: docs/_site | |