Skip to content

Merge pull request #415 from valor-software/feat/contact-modal-improv… #188

Merge pull request #415 from valor-software/feat/contact-modal-improv…

Merge pull request #415 from valor-software/feat/contact-modal-improv… #188

Workflow file for this run

name: on-deploy
on:
push:
branches:
- development
env:
FIREBASE_CHANNEL: live
CACHE_NODE_MODULES_PATH: |
node_modules
dist/valor-software-site
CACHE_DIST_PATH: |
dist
dist/valor-software-site
jobs:
# one run
one_run:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
# install dependencies
install:
runs-on: ubuntu-latest
needs: one_run
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.15.1'
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.CACHE_NODE_MODULES_PATH }}
key: node_modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --immutable --immutable-cache --check-cache
if: steps.cache.outputs.cache-hit != 'true'
# build valor-software-site-base
build:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ${{ env.CACHE_NODE_MODULES_PATH }}
key: node_modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v3
with:
path: ${{ env.CACHE_DIST_PATH }}
key: dist-${{ github.run_id }}
- run: npx nx run valor-software-site:build-scully -c stage
# firebase deploy
firebase_deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ${{ env.CACHE_DIST_PATH }}
key: dist-${{ github.run_id }}
- uses: FirebaseExtended/action-hosting-deploy@v0
continue-on-error: true
id: firebase_hosting
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VALOR_SOFTWARE_SITE }}'
target: development
projectId: valor-software-site
channelId: live