ACIT4330-Page/.github/workflows/pages-deployment.yaml
Anthony Berg a5826a4366
Some checks failed
/ Deploy to Cloudflare Pages (push) Failing after 39s
Quartz sync: Mar 1, 2025, 4:35 PM
2025-03-01 16:35:40 +01:00

29 lines
867 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/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: acit4330-anthonyberg # e.g. 'my-project'
directory: public # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}