Skip to content

all the highlights draft #158

all the highlights draft

all the highlights draft #158

on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --minify
- name: Publish Page
uses: cloudflare/pages-action@1 # https://github.com/cloudflare/pages-action
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: v01-hugo # e.g. 'my-project'
directory: public # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}