Skip to content

Commit

Permalink
Add deploy_staging.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rutajdash committed Aug 26, 2021
1 parent c11486c commit 9a9ba85
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Firebase Staging Deploy

on:
push:
branches: [development]
paths:
- "client/**"

jobs:
firebase-stage-deploy:
name: Firebase Development Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master

- name: Setup Node v14
uses: actions/setup-node@master
with:
node-version: "14.x"

- name: Install Dependencies
run: cd client && yarn install --frozen-lockfile

- name: Build React WebApp
run: cd client && yarn build:prod

- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: project-vormir
channelId: staging
expires: 30d

0 comments on commit 9a9ba85

Please sign in to comment.