Chore/add GitHub workflows for deployment (#4060)

* Add github workflows yml for deployment of studio

* Add github workflows yml for deployment of studio

* fix
This commit is contained in:
Joshen Lim authored and Inian committed 2021-11-26 11:15:00 +05:30
1 parent 4caaa0a1c4
commit 94fdf5cff2
5 files changed
+75 -4

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
name: Deploy studio app to production on vercel
on:
push:
branches:
- studio
paths:
- 'studio/**'
jobs:
deploy:
runs-on: ubuntu-18.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v19
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-comment: false
vercel-args: '--prod -A .vercel/production.json'
vercel-org-id: team_E6KJ1W561hMTjon1QSwOh0WO #Required
vercel-project-id: Qmd7Mw8yFW8SbtvTWFV9uyRzw9P1rJLmgtHjSezywhtYec #Required
working-directory: ./studio #Your Working Directory, Optional
vercel-project-name: app
@@ -0,0 +1,23 @@
name: Deploy studio app to staging on vercel
on:
push:
branches:
- master
paths:
- 'studio/**'
jobs:
deploy:
runs-on: ubuntu-18.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v19
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-comment: false
vercel-args: '--prod -A .vercel/staging.json'
vercel-org-id: team_E6KJ1W561hMTjon1QSwOh0WO #Required
vercel-project-id: QmcmhbiAtCMFTAHCuGgQscNbke4TzgWULECctNcKmxWCoT #Required
working-directory: ./studio #Your Working Directory, Optional
vercel-project-name: staging-app
+1 -4
View File
@@ -32,7 +32,4 @@ yarn-error.log*
.env.staging.local
.env.production.local
# vercel
.vercel/testing.json
.vercel/project.json
.vercel/README.txt
!.vercel
+20
View File
@@ -0,0 +1,20 @@
{
"version": 2,
"scope": "supabase",
"regions": [
"arn1",
"bom1",
"bru1",
"cdg1",
"cle1",
"dub1",
"hnd1",
"iad1",
"icn1",
"lhr1",
"pdx1",
"sfo1",
"sin1",
"syd1"
]
}
+8
View File
@@ -0,0 +1,8 @@
{
"version": 2,
"scope": "supabase",
"regions": ["syd1"],
"github": {
"enabled": false
}
}