Skip to content

generate new posts

generate new posts #18

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches:
- master
paths:
- "site/**"
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
defaults:
run:
working-directory: site
steps:
- uses: actions/checkout@v3
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:
hugo-version: '0.101.0'
extended: true
- name: Build
run: hugo --buildFuture --minify --environment production
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: awesome-chatgpt-api
directory: site/public
branch: master