Skip to content

Refactor imports and enhance component structure; add StaticGrid and … #4

Refactor imports and enhance component structure; add StaticGrid and …

Refactor imports and enhance component structure; add StaticGrid and … #4

Workflow file for this run

name: Next js build on github and deploy static
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.12.0"
cache: "npm"
- run: npm install
- run: npm run build
- name: start development
uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: ${{ fromJSON('[ "Production", "Preview"]') [github.ref != 'refs/heads/main'] }}
- name: update deployment status
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-args: "--prod" #Optional
vercel-org-id: ${{ secrets.ORG_ID }} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./
- name: update deployment status
uses: bobheadxi/deployments@v1
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
env: ${{ steps.deployment.outputs.env }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}