name: Updates Docs on: repository_dispatch: types: [docs] workflow_dispatch: jobs: update-docs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: 3.x - name: Install mkdocs-material run: pip install mkdocs-material - name: Build mkdocs site run: mkdocs build --strict - name: Build packets documentation shell: pwsh run: ./docs/tools/build-packets.ps1 - name: Copy commands and packets to site run: | cp ./docs/commands/commands.html ./site/ cp ./docs/packets/packets.html ./site/ - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: folder: ./site branch: gh-pages clean: true clean-exclude: | .nojekyll