Skip to content

trying action for generating posts #1

trying action for generating posts

trying action for generating posts #1

Workflow file for this run

name: build
on:
- push
- pull_request
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 }}