Skip to content

docs: generate changelog and update beta banner to v1 #11

docs: generate changelog and update beta banner to v1

docs: generate changelog and update beta banner to v1 #11

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches: [main]
permissions:
contents: read
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install PostCSS
run: npm install postcss postcss-cli autoprefixer
- name: Build
run: hugo --minify
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: devrail-dev
directory: public
# Required secrets (configure in GitHub repository settings):
# CLOUDFLARE_API_TOKEN - Cloudflare API token with Pages edit permission
# CLOUDFLARE_ACCOUNT_ID - Cloudflare account ID