Skip to content

Test building site

Test building site #7

Workflow file for this run

name: Test building site
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.109.0'
extended: true
- name: Build
run: |
hugo --minify
- name: Upload Build Artifact
if: success()
uses: actions/upload-artifact@v3
with:
name: build-result
path: public
if-no-files-found: error
- name: Deploy dev page to Cloudflare Pages
if: success()
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: d73a30412652351305e3f89fd125f690
projectName: blog
directory: public
branch: dev