ACIT4330-Page/.github/workflows/pages-deployment.yaml
Anthony Berg b748906142
All checks were successful
/ Deploy to Cloudflare Pages (push) Successful in 1m19s
Quartz sync: Mar 1, 2025, 4:39 PM
2025-03-01 16:39:55 +01:00

28 lines
839 B
YAML

on: [push]
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
# Run your project's build step
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Dependencies
run: npm ci
- name: Build Quartz
run: npx quartz build
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy public --project-name=acit4330-anthonyberg
gitHubToken: ${{ secrets.GITHUB_TOKEN }}