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

26 lines
659 B
YAML
Raw Normal View History

2024-03-14 09:09:45 +00:00
name: github pages
on:
push:
branches:
2024-03-14 09:10:14 +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:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
2024-03-14 09:13:14 +00:00
hugo-version: "0.115.0"
2024-03-14 09:09:45 +00:00
- name: Build
run: hugo --minify
2024-03-14 09:24:50 +00:00
- run: npm ci
2024-03-14 09:28:27 +00:00
- run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} npx wrangler pages publish public --project-name blog-usbharu