Update README.md #14
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: | |
- main | |
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: '12' | |
- 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}} |