Skip to content

Merge pull request #7 from phareim/dependabot/npm_and_yarn/functions/… #15

Merge pull request #7 from phareim/dependabot/npm_and_yarn/functions/…

Merge pull request #7 from phareim/dependabot/npm_and_yarn/functions/… #15

name: Deploy to Firebase Hosting and Functions on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16' # Justert til en sannsynligvis støttet versjon
- run: npm install -g firebase-tools
- run: cd functions && npm install
- run: firebase deploy --only functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SPACE_50ED0 }}'
channelId: live
projectId: space-50ed0
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

Check failure on line 26 in .github/workflows/firebase-functions-merge.yml

View workflow run for this annotation

GitHub Actions / Deploy to Firebase Hosting and Functions on merge

Invalid workflow file

The workflow is not valid. .github/workflows/firebase-functions-merge.yml (Line: 26, Col: 13): A mapping was not expected