blog/.gitea/workflows/build-page.yaml

26 lines
633 B
YAML
Raw Normal View History

2024-03-14 09:09:45 +00:00
name: github pages
on:
push:
branches:
2024-12-08 05:31:51 +00:00
- master # Set a branch name to trigger deployment
2024-03-14 09:09:45 +00:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
2024-12-08 05:31:51 +00:00
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2024-03-14 09:09:45 +00:00
2024-12-08 05:31:51 +00:00
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.139.3"
2024-03-14 09:09:45 +00:00
2024-12-08 05:31:51 +00:00
- name: Build
run: hugo --minify
- run: npm ci
- run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} npx wrangler pages publish public --project-name blog-usbharu