deploy #3
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 : Firebase Deployment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Build & Deployment | |
runs-on : ubuntu-latest | |
steps: | |
- name : get the source code | |
uses: actions/checkout@v2 | |
- name : install node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name : install node packages | |
run: npm i | |
- name: Build | |
run: npm run build | |
env: | |
CI: false | |
- name : Deploy to Firebase | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only hosting | |
env: | |
FIREBASE_TOKEN: ${{secrets.FIREBASE_TOKEN}} |