From 2b2c5d69b8130ccbad1b4d16f3e3e2a0e0b00c07 Mon Sep 17 00:00:00 2001 From: Luzifix Date: Fri, 19 Jul 2024 23:23:08 +0200 Subject: [PATCH] Add auto-doc workflow --- .github/workflows/auto-doc.yml | 25 +++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/auto-doc.yml diff --git a/.github/workflows/auto-doc.yml b/.github/workflows/auto-doc.yml new file mode 100644 index 0000000..b26f4c2 --- /dev/null +++ b/.github/workflows/auto-doc.yml @@ -0,0 +1,25 @@ +name: Automatic documentation +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +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 build --no-restore -o build + - name: Automatic documentation + run: | + cd build + ls -la + dotnet run Warcraft.Net.Docs ../Docs diff --git a/.gitignore b/.gitignore index 29c559f..ec36b6d 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ bld/ [Bb]in/ [Oo]bj/ [Ll]og/ +build/ # Visual Studio 2015/2017 cache/options directory .vs/