-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.24 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY }}
REACT_APP_FIREBASE_AUTH_DOMAIN: ${{ secrets.REACT_APP_FIREBASE_AUTH_DOMAIN }}
REACT_APP_FIREBASE_DATABASE_URL: ${{ secrets.REACT_APP_FIREBASE_DATABASE_URL }}
REACT_APP_FIREBASE_STORAGE_BUCKET: ${{ secrets.REACT_APP_FIREBASE_STORAGE_BUCKET }}
REACT_APP_TRANSLATE_URL: ${{ secrets.REACT_APP_TRANSLATE_URL }}
REACT_APP_TRANSLATE_LANGUAGE_LIST_URL: ${{ secrets.REACT_APP_TRANSLATE_LANGUAGE_LIST_URL }}
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: npm install
- name: Build
run: npm run build
env:
CI: false
#- name: Test
# run: npm test
- name: lint
run: npm run lint
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting