Update README.md #81
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 | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: Build and deploy | |
runs-on: ubuntu-latest | |
environment: | |
name: kameroon | |
url: https://kameroon.web.app | |
steps: | |
- name: checkout source code | |
uses: actions/checkout@v2 | |
- name: install node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: install npm dependencies | |
run: npm ci | |
- name: build React bundle | |
run: npm run build && npm run build-sw | |
env: | |
GENERATE_SOURCEMAP: false | |
DISABLE_ESLINT_PLUGIN: true | |
- name: push to Firebase | |
uses: w9jds/firebase-action@v2.0.0 | |
with: | |
args: deploy --only hosting:kameroon | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |