Skip to content

Deploy webpage

Deploy webpage #95

Workflow file for this run

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:
enableCrossOsArchive: true
path: moon-dev/Library
key: ${{ runner.os }}-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: StandaloneLinux64
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
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache/restore@v3
with:
path: moon-dev/Library
key: ${{ runner.os }}-Library-Moon
restore-keys: |
Library-
# Download the generated documentation
- name: Download site artifact
uses: actions/download-artifact@v4
with:
path: moon-dev
name: files
- run : |
ls moon-dev
- run: docker run -i unityci/editor:ubuntu-2022.3.10f1-linux-il2cpp-2 bash
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Setup Docfx
run: dotnet tool install docfx --version 2.73.0 --tool-path ./
- name: Build Site
run: ./docfx docs/docfx.json
- name: Upload site artifact
uses: actions/upload-artifact@v4
with:
name: _site
path: docs/_site