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