forked from HackDavis/hackdavis-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 910 Bytes
/
staging.yaml
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
name: Staging Deployment
on:
push:
branches:
- 'main'
jobs:
deploy_staging:
name: Deploy Staging
runs-on: ubuntu-latest
environment:
name: staging
url: ${{ vars.ENV_URL }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '21.1.0'
- name: Install dependencies
run: npm install
- name: Lint and build code, then publish to Vercel
run: >
vercel
--token ${{ secrets.VERCEL_TOKEN }}
-n ${{ vars.VERCEL_PROJECT }}
--yes
--prod
--env MONGODB_URI=${{ secrets.MONGODB_URI }}
--build-env MONGODB_URI=${{ secrets.MONGODB_URI }}
- name: Success
run: echo "🚀 Deploy successful - BLAST OFF WOO! (woot woot) !!! 🐕 🐕 🐕 🚀 "