From cdbe31f877c60e02afdc5a44e78e066990b52789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Milosavljevi=C4=87?= <116065832+nikola-milosa@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:16:46 +0100 Subject: [PATCH] docs(mkdocs): deploy mkdocs (#66) * deploy mkdocs * linting * tie to 22.04 --- .github/workflows/mkdocs.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/mkdocs.yaml diff --git a/.github/workflows/mkdocs.yaml b/.github/workflows/mkdocs.yaml new file mode 100644 index 000000000..2173ef8d4 --- /dev/null +++ b/.github/workflows/mkdocs.yaml @@ -0,0 +1,32 @@ +name: Deploy MkDocs + +on: + push: + paths: + - 'docs/**' + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install mkdocs mkdocs-material + + - name: Deploy to GitHub Pages + run: | + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + mkdocs gh-deploy --force