generated from smyalygames/quartz
28 lines
839 B
YAML
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 }} |