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
3 changes: 2 additions & 1 deletion .github/workflows/pr-pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
if: github.event.action != 'closed'
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
environment-file: conda-lock.yml
environment-name: ci
init-shell: bash
cache-environment: true

Expand Down
33 changes: 21 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
workflow_dispatch:
push:
branches: main
branches: [main]

name: Quarto Publish

Expand All @@ -10,24 +10,33 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install Python and Dependencies
uses: actions/setup-python@v5
- name: Setup micromamba
if: github.event.action != 'closed'
uses: mamba-org/setup-micromamba@v2
with:
python-version: '3.10'
cache: 'pip'
- run: pip install jupyter
- run: pip install -r requirements.txt
environment-file: conda-lock.yml
environment-name: ci
init-shell: bash
cache-environment: true

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
- name: Render Quarto Project using mamba environment
if: github.event.action != 'closed'
shell: micromamba-shell {0}
run: quarto render

- name: Deploy to GitHub Pages
if: github.event.action != 'closed'
uses: peaceiris/actions-gh-pages@v3
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
keep_files: true

2 changes: 1 addition & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ filters:
- quarto

execute:
freeze: true
freeze: auto
Loading
Loading