Skip to content

WIP

WIP #1

Workflow file for this run

name: CI/CD
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup
run: script/setup
- name: Build
run: script/build
- name: Upload `dist`
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download dist
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: mandelbrot
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}