-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.03 KB
/
vercel.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
name: Deploy
on:
push:
branches:
- source
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
"build":
# This comes with
# - Vercel CLI
# - Make
# - Node 18
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
ssh-key: ${{ secrets.SSH_KEY }}
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Create Vercel config
# This uses Node
run: |
make vercel.json
- name: Build and deploy
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
# GitHub preinstalls it.
run: |
vercel pull --yes --environment production --token ${{ secrets.VERCEL_TOKEN }}
vercel build --prod --token ${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --prod --token ${{ secrets.VERCEL_TOKEN }}