fix import function #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Firebase production on merge into Main | |
'on': | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: yarn install --frozen-lockfile && yarn build | |
- run: | | |
cd functions | |
npm ci | |
- name: Enter staging environment | |
uses: w9jds/firebase-action@v13.4.0 | |
with: | |
args: use production | |
env: | |
FIREBASE_TOKEN: '${{ secrets.FIREBASE_TOKEN }}' | |
- name: Deploy Firebase Functions and Hosting | |
uses: w9jds/firebase-action@v13.4.0 | |
with: | |
args: deploy --only hosting:sandwich-orders,functions | |
env: | |
FIREBASE_TOKEN: '${{ secrets.FIREBASE_TOKEN }}' |