From 239e8f57ed17c7870a702da47b7ed887e6cdcaa8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Sep 2026 08:55:55 +0000 Subject: [PATCH 1/2] Add GitHub Pages deployment workflow for Hugo site Co-authored-by: lazyparser <1802104+lazyparser@users.noreply.github.com> --- .github/workflows/hugo-deploy.yml | 60 +++++++++++++++++++++++++++++++ static/CNAME | 1 + 2 files changed, 61 insertions(+) create mode 100644 .github/workflows/hugo-deploy.yml create mode 100644 static/CNAME diff --git a/.github/workflows/hugo-deploy.yml b/.github/workflows/hugo-deploy.yml new file mode 100644 index 0000000..41333ce --- /dev/null +++ b/.github/workflows/hugo-deploy.yml @@ -0,0 +1,60 @@ +name: Deploy Hugo site to Pages + +on: + push: + branches: + - main + - master + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.148.2 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: ${{ env.HUGO_VERSION }} + extended: true + + - name: Build with Hugo + env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache + run: hugo --gc --minify + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + + 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@v4 diff --git a/static/CNAME b/static/CNAME new file mode 100644 index 0000000..bc66606 --- /dev/null +++ b/static/CNAME @@ -0,0 +1 @@ +hellollvm.org From ca256c44f37490db600a6281d34bf81133791fc0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Sep 2026 08:57:52 +0000 Subject: [PATCH 2/2] Configure GitHub Pages deployment and custom domain output Co-authored-by: lazyparser <1802104+lazyparser@users.noreply.github.com> --- .github/workflows/hugo-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hugo-deploy.yml b/.github/workflows/hugo-deploy.yml index 41333ce..35bb7f0 100644 --- a/.github/workflows/hugo-deploy.yml +++ b/.github/workflows/hugo-deploy.yml @@ -33,7 +33,7 @@ jobs: uses: actions/configure-pages@v5 - name: Setup Hugo - uses: peaceiris/actions-hugo@v3 + uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 with: hugo-version: ${{ env.HUGO_VERSION }} extended: true