Skip to content

Fix the network role at compile time for exported builds #270

Fix the network role at compile time for exported builds

Fix the network role at compile time for exported builds #270

Workflow file for this run

name: CI and Deploy Docs
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: 4.5.0
use-dotnet: true
- name: Restore dependencies
run: dotnet restore
working-directory: test
- name: Build
run: dotnet build --no-restore
working-directory: test
- name: Run tests
run: dotnet test --no-build --verbosity normal
working-directory: test
deploy-docs:
needs: test
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: 4.5.0
use-dotnet: true
- name: Build Nebula
run: dotnet build
- name: Install DocFX
run: dotnet tool install -g docfx
- name: Build Documentation
run: docfx build docfx.json
working-directory: Documentation
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './Documentation/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4