feat: initial Hugo static site (closes #1) #2

Merged
sneak merged 2 commits from feat/initial-site into main 2026-02-10 12:28:21 +01:00
Showing only changes of commit 36e0942f46 - Show all commits

View File

@ -0,0 +1,52 @@
name: Build and Deploy to Cloudflare Pages
on:
push:
branches:
- feat/initial-site
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: klakegg/hugo:ext-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build site
run: hugo --minify
- name: Archive site
run: tar -czf site.tar.gz public
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: site
path: site.tar.gz
deploy:
runs-on: ubuntu-latest
needs: build
container:
image: node:20
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: site
- name: Extract site
run: tar -xzf site.tar.gz
- name: Install Wrangler
run: npm install -g wrangler
- name: Deploy to Cloudflare Pages
run: wrangler pages deploy public --project-name=lora-vegas --branch=${{ github.ref_name }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}