-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (34 loc) · 938 Bytes
/
beta.yml
File metadata and controls
40 lines (34 loc) · 938 Bytes
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
name: Deploy Beta
on:
workflow_dispatch:
pull_request:
types: [edited]
jobs:
deploy-beta:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Write service account
run: |
mkdir private
echo "$BETA_FIREBASE_SERVICE_ACCOUNT" > ./private/service-account.json
echo '${{ secrets.BETA_FIREBASE_SERVICE_ACCOUNT }}' > gcloud.json
env:
BETA_FIREBASE_SERVICE_ACCOUNT: ${{ secrets.BETA_FIREBASE_SERVICE_ACCOUNT }}
shell: bash
- name: Install
run: |
npm install
shell: bash
- name: Deploy
env:
GOOGLE_APPLICATION_CREDENTIALS: gcloud.json
run: |
npm run deploy
shell: bash