-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.01 KB
/
on-release.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
name: On release
on:
release:
types: [released]
jobs:
test_and_deploy:
runs-on: ubuntu-latest
steps:
## Install and test
- uses: actions/checkout@v4
with:
token: ${{ secrets.DEPLOY_TOKEN }}
- uses: actions/setup-node@master
with:
node-version: '18.20.3'
- run: npm ci
- run: npm run ci:test:rules
- run: echo "Test functions"
# run: npm run test:functions
- run: npm run test:actions
- run: npm run test:shared
## Deploy to production
- run: npm run production:deploy:rules
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
- run: npm run production:deploy:indexes
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
- run: npm run production:deploy:functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
- run: npm run production:deploy:storage-rules
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}