blog/.forgejo/workflows/deploy.yml
Peter Kurfer 27e0ddf95b
Some checks failed
Deploy pages / deploy (push) Failing after 20s
feat: deploy pages to Cloudflare pages
2024-04-29 19:18:42 +02:00

21 lines
530 B
YAML

name: Deploy pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
- name: Build
run: hugo --minify --environment production
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_PAGES_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy public --project-name=blog