Skip to content
Open
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: 11 additions & 28 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Deploy Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
# Deploy Hugo site to Cloudflare Pages
name: Deploy Hugo site to Cloudflare Pages

on:
push:
Expand All @@ -8,8 +8,7 @@ on:

permissions:
contents: read
pages: write
id-token: write
deployments: write

concurrency:
group: "pages"
Expand All @@ -20,19 +19,16 @@ defaults:
shell: bash

jobs:
build:
deploy:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.152.2
HUGO_VERSION: 0.155.3
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:
Expand All @@ -41,10 +37,6 @@ jobs:
- name: Init Git submodules
run: git submodule update --init --recursive

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -68,20 +60,11 @@ jobs:
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: hugo --minify
run: hugo --gc --minify

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@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
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy public --project-name=seolcoding --branch=main --commit-dirty=true
2 changes: 0 additions & 2 deletions static/CNAME

This file was deleted.

3 changes: 3 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = "seolcoding"
compatibility_date = "2026-04-01"
pages_build_output_dir = "public"