Skip to content

Merge pull request #35 from rusudinu/master #7

Merge pull request #35 from rusudinu/master

Merge pull request #35 from rusudinu/master #7

Workflow file for this run

name: Deploy to prod
'on':
push:
branches:
- prod
jobs:
deploy_prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LUCRA_EXPENSES }}'
channelId: live
projectId: lucra-expenses