-
Notifications
You must be signed in to change notification settings - Fork 1.2k
50 lines (42 loc) · 1.32 KB
/
faster-template-prebuild-boilerplate-nextjs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Prebuild Next.js Boilerplate Example
on:
push:
branches:
- main
workflow_dispatch:
inputs:
jobs:
clone-build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: |
node --version
npm --version
- run: |
npm install -g vercel@latest
vc --version
- working-directory: ./framework-boilerplates/nextjs
run: |
npm ci
env:
NPM_CONFIG_LOGLEVEL: http
- working-directory: ./framework-boilerplates/nextjs
run: |
vc build --debug --token $VERCEL_TOKEN --yes --prod
env:
VERCEL_PROJECT_ID: prj_D1Kp06w4jE67wyV3WlMHjtfDLjhC
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}
- working-directory: ./framework-boilerplates/nextjs
run: |
vc deploy --debug --token $VERCEL_TOKEN --yes --prod --prebuilt --archive=tgz
env:
VERCEL_PROJECT_ID: prj_D1Kp06w4jE67wyV3WlMHjtfDLjhC
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}