Skip to content

Commit

Permalink
Removed: firebase and vapid config steps from release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Feb 16, 2024
1 parent 66c9d85 commit a8281b1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/firebase-hosting-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ name: Deploy to Firebase Hosting on release
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
Expand All @@ -24,16 +23,6 @@ jobs:
run: npm install
- name: Generate .env file
run: cp .env.example .env
- name: Set Firebase and VAPID Config
run: |
if [[ -n "$VUE_APP_FIREBASE_CONFIG" ]]; then
sed -i "s|VUE_APP_FIREBASE_CONFIG=.*|VUE_APP_FIREBASE_CONFIG=$VUE_APP_FIREBASE_CONFIG|g" .env
sed -i "s|VUE_APP_FIREBASE_VAPID_KEY=.*|VUE_APP_FIREBASE_VAPID_KEY='$VUE_APP_FIREBASE_VAPID_KEY'|g" .env
sed -i "s|const firebaseConfig =.*|const firebaseConfig = $VUE_APP_FIREBASE_CONFIG|g" public/firebase-messaging-sw.js
fi
env:
VUE_APP_FIREBASE_CONFIG: ${{ secrets.VUE_APP_FIREBASE_CONFIG }}
VUE_APP_FIREBASE_VAPID_KEY: ${{ secrets.VUE_APP_FIREBASE_VAPID_KEY }}
- name: Build
run: npm run build
- name: Install Firebase
Expand Down

0 comments on commit a8281b1

Please sign in to comment.