Skip to content

Add deployment to pipeline #4

Add deployment to pipeline

Add deployment to pipeline #4

Workflow file for this run

name: Astro CI/CD
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node w/ cache
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Prettier
run: yarn prettier:check
- name: Build
run: yarn build
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}