diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..39758e6b0 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,45 @@ +name: "DisCatSharp Docs" + +on: + push: + branches: [ docs-workflow ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + path: DisCatSharp + - uses: actions/checkout@v2 + with: + repository: Aiko-IT-Systems/DisCatSharp.Docs + path: DisCatSharp.Docs + token: ${{ secrets.DOCS_TOKEN }} + + - name: Build Docs + working-directory: ./DisCatSharp + shell: pwsh + run: | + ./rebuild-docs.ps1 -DocsPath "./DisCatSharp.Docs" -Output ".." -PackageName "dcs-docs" + + - name: Purge old docs + working-directory: ./DisCatSharp.Docs + run: | + shopt -s extglob + rm -rf !(.git|.gitignore) + + - name: Extract new docs + run: | + tar -xf dcs-docs.tar.xz -C ./DisCatSharp.Docs + + - name: Commit and push changes + uses: Aiko-IT-Systems/add-and-commit@master + with: + cwd: ./DisCatSharp.Docs + default_author: github_actions + author_name: DisCatSharp + author_email: discatsharp@aitsys.dev + message: 'Docs update for commit ${{ github.repository }} (${{ github.sha }})' + pull_strategy: 'NO-PULL' # No need to pull, we already checked out earlier diff --git a/DisCatSharp.Docs/images/basics_first_bot_06.png b/DisCatSharp.Docs/images/basics_first_bot_06.png index 3495ce83d..49403b7b3 100644 Binary files a/DisCatSharp.Docs/images/basics_first_bot_06.png and b/DisCatSharp.Docs/images/basics_first_bot_06.png differ diff --git a/DisCatSharp.Docs/images/basics_first_bot_07.png b/DisCatSharp.Docs/images/basics_first_bot_07.png index aff0a1005..bbcdc53f1 100644 Binary files a/DisCatSharp.Docs/images/basics_first_bot_07.png and b/DisCatSharp.Docs/images/basics_first_bot_07.png differ