Skip to content

Commit

Permalink
Prebuild vercel-tutor (#998)
Browse files Browse the repository at this point in the history
### 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?
  • Loading branch information
chibicode authored Jan 9, 2025
1 parent dd1a1e9 commit 95f5289
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/faster-template-prebuild-vercel-tutor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Prebuild Vercel Tutor

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: ./vercel-tutor
run: |
corepack enable
pnpm install
env:
NPM_CONFIG_LOGLEVEL: http

- working-directory: ./vercel-tutor
run: |
vc build --debug --token $VERCEL_TOKEN --yes --prod
env:
VERCEL_PROJECT_ID: prj_MOlShEFPtl2m22AhKxjXZYUbnsRX
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}

- working-directory: ./vercel-tutor
run: |
vc deploy --debug --token $VERCEL_TOKEN --yes --prod --prebuilt --archive=tgz
env:
VERCEL_PROJECT_ID: prj_MOlShEFPtl2m22AhKxjXZYUbnsRX
VERCEL_TOKEN: ${{ secrets.VERCEL_EXAMPLES_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_EXAMPLES_ORG_ID }}

0 comments on commit 95f5289

Please sign in to comment.