Skip to content

Rework action files #37

Rework action files

Rework action files #37

Workflow file for this run

name: Build Commit
on:
push:
paths:
- ".github/workflows/build-commit.yml"
- "docs/**"
- "libs/**"
- "src/**"
- "tools/**"
- "*.sln"
workflow_dispatch:
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
jobs:
build_commit:
name: Build Commit
runs-on: self-hosted
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]')"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8
7
- name: Build Project
run: dotnet build
document_commit:
name: Document Commit
runs-on: self-hosted
needs: build_commit
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Install DocFX
run: dotnet tool update -g docfx --prerelease
continue-on-error: true
- name: Build documentation
run: docfx docs/docfx.json
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/_site/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1