From 5f6d17431cd1797715bd86e183042e1e240986ae Mon Sep 17 00:00:00 2001 From: rmiravalles Date: Sat, 14 Feb 2026 15:49:59 +0100 Subject: [PATCH] Added a workflow to deploy the MKDocs site to GitHub pages --- .github/workflows/deploy.yaml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..9ea544a --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,43 @@ +name: Deploy MkDocs site + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deploy-pages.outputs.page_url }} + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-python@v6 + with: + python-version: '3.x' + + - name: Install dependencies + run: pip install mkdocs mkdocs-material + + - name: Build site + run: mkdocs build -d site + + - name: Configure Pages + uses: actions/configure-pages@v5 + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: site + + - name: Deploy to GitHub Pages + id: deploy-pages + uses: actions/deploy-pages@v4 \ No newline at end of file