From d5f9c3a3bc9cb4b9faa65a770948bdfb51927463 Mon Sep 17 00:00:00 2001 From: Pol Date: Wed, 15 Apr 2026 23:17:22 +0200 Subject: [PATCH 1/5] deploy our hugo site --- .github/workflows/deploy.yml | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..edb4564 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,76 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["website"] + + # 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 + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.128.0 + 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 + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Install Node.js dependencies + working-directory: ./website + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo + working-directory: ./website + env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache + HUGO_ENVIRONMENT: production + run: | + hugo \ + --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./website/public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 From 294ffa82c1271d8caa0d86e9b7766e09f6aed729 Mon Sep 17 00:00:00 2001 From: Pol Date: Wed, 15 Apr 2026 23:19:29 +0200 Subject: [PATCH 2/5] enablement setting --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index edb4564..f9a7e15 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,6 +46,8 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 + with: + enablement: true - name: Install Node.js dependencies working-directory: ./website run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" From 3db310a6bf70a48e5aa578e87107b4982868f81e Mon Sep 17 00:00:00 2001 From: Pol Date: Wed, 15 Apr 2026 23:26:35 +0200 Subject: [PATCH 3/5] Revert "enablement setting" This reverts commit 294ffa82c1271d8caa0d86e9b7766e09f6aed729. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f9a7e15..edb4564 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,8 +46,6 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 - with: - enablement: true - name: Install Node.js dependencies working-directory: ./website run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" From 71adb7bc4d589cb412e7f339f6066fc73f0a5230 Mon Sep 17 00:00:00 2001 From: Pol Date: Wed, 15 Apr 2026 23:32:45 +0200 Subject: [PATCH 4/5] test failing congo --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index edb4564..40f47dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,12 +43,17 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 - name: Setup Pages id: pages uses: actions/configure-pages@v5 + with: + enablement: true - name: Install Node.js dependencies working-directory: ./website run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Verify theme files + run: ls website/themes/congo/layouts/_shortcodes/ - name: Build with Hugo working-directory: ./website env: From 7f32da6c99f28ddecf6f2cf2cc38e4efd246d1e6 Mon Sep 17 00:00:00 2001 From: Pol Date: Wed, 15 Apr 2026 23:35:26 +0200 Subject: [PATCH 5/5] hugo version update --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 40f47dc..f027583 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.128.0 + HUGO_VERSION: 0.160.1 steps: - name: Install Hugo CLI run: |