chore: update github pages config

This commit is contained in:
2026-01-10 04:58:31 +02:00
parent ef6a991a4c
commit 6286672fa5

View File

@@ -1,5 +1,5 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages # Workflow for building and deploying a Quarto site to GitHub Pages
name: Deploy Hugo site to Pages name: Deploy Quarto site to Pages
on: on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
@@ -30,36 +30,36 @@ jobs:
# Build job # Build job
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.148.1
steps: steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
with: with:
submodules: recursive version: release
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install Python dependencies
run: |
pip install jupyter
- name: Setup Pages - name: Setup Pages
id: pages id: pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Render Quarto site
- name: Build with Hugo run: quarto render
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
path: ./public path: ./_site
# Deployment job # Deployment job
deploy: deploy: