Skip to content

build

build #137

Workflow file for this run

name: build
on:
push:
branches:
- master
workflow_run:
workflows: ["Generate New Posts"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: current
cache: npm
- run: npm ci
- run: npm run build
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs:
- build
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: current
cache: npm
- run: npx vercel --prod --token ${{ secrets.VERCEL_TOKEN }}