From 40bc364690985b1ae83f89518a1b1ac1f04e37c8 Mon Sep 17 00:00:00 2001 From: Jonas Schwab Date: Thu, 12 Feb 2026 18:01:00 +0100 Subject: [PATCH 1/2] CI: Fix tests --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d1321ea..417c126 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Clone compile and run ALF for each Hamiltonian - shell: bash --noprofile --norc -eo pipefail + shell: bash run: | for i in Hamiltonians/*/; do echo "Testing $i" @@ -66,7 +66,7 @@ jobs: ln -fs ${bindir}/g++-${gcc_version} /usr/local/bin/g++ - name: Clone compile and run ALF for each Hamiltonian - shell: bash --noprofile --norc -eo pipefail + shell: bash run: | for i in Hamiltonians/*/; do echo "Testing $i" From dca7cf7661cd0d64d004947918dfd4127fa96f5a Mon Sep 17 00:00:00 2001 From: Jonas Schwab Date: Thu, 12 Feb 2026 18:04:29 +0100 Subject: [PATCH 2/2] Run actions/configure-pages only on main --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0a5ecbe..226adf0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,18 +10,13 @@ permissions: pages: write id-token: write concurrency: - group: 'pages' + group: 'pages-${{ github.ref }}' cancel-in-progress: false jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - name: Setup Pages - uses: actions/configure-pages@v5 - uses: actions/setup-node@v6 with: node-version: 24.x @@ -29,11 +24,33 @@ jobs: run: npm install -g jupyter-book - name: Build HTML Assets run: jupyter-book build --html - - name: Upload artifact + - name: Upload Jupyter Book HTML artifact + uses: actions/upload-artifact@v6 + with: + name: jupyter-book-html + path: _build/html + if-no-files-found: error + + deploy_pages: + name: Deploy GitHub Pages (main only) + runs-on: ubuntu-latest + needs: [build] + if: github.ref == 'refs/heads/main' + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Download Jupyter Book HTML + uses: actions/download-artifact@v7 + with: + name: jupyter-book-html + path: public + - name: Configure Pages + uses: actions/configure-pages@v5 + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v4 with: - path: './_build/html' - - name: Deploy to GitHub Pages - if: github.ref == 'refs/heads/main' + path: public + - name: Deploy to Pages id: deployment uses: actions/deploy-pages@v4