diff --git a/.github/workflows/firebase-hosting-release.yml b/.github/workflows/firebase-hosting-release.yml index 5209aab..b3c180b 100644 --- a/.github/workflows/firebase-hosting-release.yml +++ b/.github/workflows/firebase-hosting-release.yml @@ -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 @@ -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