diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76f4755..24d008f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ main ] +permissions: + contents: write + pages: write + id-token: write + jobs: test: name: Test @@ -63,4 +68,24 @@ jobs: - name: Run Gosec Security Scanner uses: securego/gosec@master with: - args: ./... \ No newline at end of file + args: ./... + + docs: + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install mkdocs-material mkdocs-minify-plugin + - name: Configure Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + - name: Deploy documentation + run: mkdocs gh-deploy --force \ No newline at end of file