Skip to content

Add auto-doc workflow #12

Add auto-doc workflow

Add auto-doc workflow #12

Workflow file for this run

name: Automatic documentation
on:
push:
jobs:
auto-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish --no-restore -o build
- name: Automatic documentation
run: dotnet build/Warcraft.NET.Docs.dll ${{ github.workspace }}/Docs
- name: Commit & Push changes
uses: actions-js/push@master
with:
author_name: Automatic documentation
message: Automatic documentation ${date}'
branch: ${{ github.head_ref || github.ref_name }}
github_token: ${{ secrets.ACTION_TOKEN }}