Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 28 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,47 @@ 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
- name: Install Jupyter Book (via myst)
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
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down