Skip to content

Merge pull request #83 from helsingborg-stad/staging #25

Merge pull request #83 from helsingborg-stad/staging

Merge pull request #83 from helsingborg-stad/staging #25

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- production
env:
ENVFILE: '.env.prod'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: 'npm ci'
- name: Build
run: |-
cp ${{ env.ENVFILE }} .env && echo "VITE_GOOGLE_MAPS_API_KEY=${{ secrets.GOOGLE_MAPS_API_KEY }}" >> .env
NODE_OPTIONS=--openssl-legacy-provider npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HELSINGBORG_POC_PROD }}'
channelId: live
projectId: helsingborg-poc-prod