Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Update README.md

Update README.md #36

Workflow file for this run

name: Build and Deploy app to DEV site
'on':
push:
branches:
- dev
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Dependencies
working-directory: ./app/WhereIsThePower
run: npm install --frozen-lock
- name: Inject Developer tags
run: |
sed -i 's|<!-- DEVELOPER SITE INJECTION -->|<ion-item><ion-title style="background-color: red; color: white;">DEVELOPER SITE</ion-title></ion-item>|g' app/WhereIsThePower/src/app/app.component.html
sed -i 's|<title>Where Is The Power|<title>WITP-DEV|g' app/WhereIsThePower/src/index.html
sed -i 's|href="assets/icon/favicon.ico"|href="assets/Ramp.svg"|g' app/WhereIsThePower/src/index.html
- name: update Prod ENV file
run: |
sed -i 's/HelloAPIKey/${{ secrets.MAPBOX_API_KEY }}/g' app/WhereIsThePower/src/environments/environment.prod.ts
- name: Build app
working-directory: ./app/WhereIsThePower
run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WHEREISTHEPOWER_33A66 }}'
channelId: live
projectId: whereisthepower-33a66
target: dev
entrypoint: ./app/WhereIsThePower