forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.26 KB
/
panenco-app-deploy.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
43
44
45
46
47
48
49
50
51
name: 'Panenco APP deploy'
on:
workflow_dispatch:
push:
branches: ['panenco']
env:
BUCKET_NAME: novu-web
jobs:
deploy_app:
runs-on: ubuntu-latest
steps:
# ** 1. General Setup **
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: 7.5.0
run_install: true
- name: Login
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
- name: Set project
run: gcloud --quiet config set project ${{secrets.GOOGLE_PROJECT_ID}}
- name: Load env
run: |
gcloud secrets versions access latest --secret=novu-web > apps/web/.env
cd apps/web && pnpm envsetup && cd ../..
- name: Build
run: CI='' pnpm build:web
- name: Deploy Web
run: gcloud storage cp apps/web/build/* gs://$BUCKET_NAME/ --recursive