Skip to content

Commit 95f5289

Browse files
authored
Prebuild vercel-tutor (#998)
### Description Example run: https://github.com/vercel/examples/actions/runs/12698160319/job/35396016415 ### Demo URL <!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. --> ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
1 parent dd1a1e9 commit 95f5289

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Prebuild Vercel Tutor
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
inputs:
9+
10+
jobs:
11+
clone-build-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 'lts/*'
21+
22+
- run: |
23+
node --version
24+
npm --version
25+
26+
- run: |
27+
npm install -g vercel@latest
28+
vc --version
29+
30+
- working-directory: ./vercel-tutor
31+
run: |
32+
corepack enable
33+
pnpm install
34+
env:
35+
NPM_CONFIG_LOGLEVEL: http
36+
37+
- working-directory: ./vercel-tutor
38+
run: |
39+
vc build --debug --token $VERCEL_TOKEN --yes --prod
40+
env:
41+
VERCEL_PROJECT_ID: prj_MOlShEFPtl2m22AhKxjXZYUbnsRX
42+
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
43+
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}
44+
45+
- working-directory: ./vercel-tutor
46+
run: |
47+
vc deploy --debug --token $VERCEL_TOKEN --yes --prod --prebuilt --archive=tgz
48+
env:
49+
VERCEL_PROJECT_ID: prj_MOlShEFPtl2m22AhKxjXZYUbnsRX
50+
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
51+
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}

0 commit comments

Comments
 (0)