This commit is contained in:
parent
624fce055a
commit
ef981b6f31
27
.gitea/workflows/deploy-cloudflare.yml
Normal file
27
.gitea/workflows/deploy-cloudflare.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Deploy Cloudflare Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
with:
|
||||||
|
hugo-version: '0.122.0'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: "hugo --minify"
|
||||||
|
|
||||||
|
- name: Deploy to Cloudflare Pages
|
||||||
|
run: "npx --yes wrangler pages deploy --project-name $CLOUDFLARE_PAGES_PROJECT_NAME ./public --branch main"
|
||||||
|
env:
|
||||||
|
CLOUDFLARE_PAGES_PROJECT_NAME: ${{ secrets.CLOUDFLARE_PAGES_PROJECT_NAME }}
|
||||||
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
Loading…
Reference in New Issue
Block a user