-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.08 KB
/
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
name: Upload auth-scheduled-backup extension
on:
workflow_dispatch:
inputs:
stage:
description: 'Release Stage'
required: true
type: choice
options:
- alpha
- beta
- rc
- stable
jobs:
upload_extension:
runs-on: ubuntu-latest
environment: deploy
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.10'
- name: Install Firebase CLI
run: npm install -g firebase-tools
- name: Authenticate with Firebase
run: |
echo "${{ secrets.SERVICE_ACCOUNT_KEY }}" | base64 --decode > "$HOME/service-account-key.json"
echo "GOOGLE_APPLICATION_CREDENTIALS=$HOME/service-account-key.json" >> $GITHUB_ENV
- name: Upload Firebase Extension
run: |
firebase ext:dev:upload ${{ secrets.FIREBASE_PUBLISHER_ID }}/${{ secrets.FIREBASE_EXTENSION_ID }} \
--repo "https://github.com/50Fifty/auth-scheduled-backup" \
--ref "main" \
--stage ${{ github.event.inputs.stage }} \
--force