From 060fbce079c90a919bbe7418a65949db6a258592 Mon Sep 17 00:00:00 2001 From: Patarimi <38954040+Patarimi@users.noreply.github.com> Date: Sun, 1 Mar 2026 12:46:15 +0100 Subject: [PATCH 1/2] Add doc deployment Added steps to build documentation using mkdocs. --- .github/workflows/static.yml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..0b6ed79 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,47 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - uses: astral-sh/setup-uv@v7 + - name: Build Doc + run: | + uv sync --all-extras --group doc + uv run mkdocs build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './site' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 94469f3b03e7543020f613a99c7a05dcb39587db Mon Sep 17 00:00:00 2001 From: Patarimi <38954040+Patarimi@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:08:25 +0100 Subject: [PATCH 2/2] Update Nix channel to use nixos-25.11 --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index d977b42..79bc3d7 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -61,7 +61,7 @@ jobs: if: ${{runner.os != 'Windows' }} run: | nix-channel --list - nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs + nix-channel --add https://nixos.org/channels/nixos-25.11 nixpkgs nix-channel --update nix-env -iA nixpkgs.openems which openEMS