ci: fix firebase functions workflow (#612)

This commit is contained in:
Felix Angelov
2021-05-13 17:01:49 -05:00
committed by GitHub
parent ab17419ee5
commit e480bbd55a
4 changed files with 2 additions and 40 deletions

View File

@ -1,4 +1,4 @@
me: firebase_functions
name: firebase_functions
on:
pull_request:

View File

@ -1,22 +0,0 @@
name: firebase_functions_deploy
on:
push:
branches:
- main
paths:
- functions/**
- .github/workflows/firebase_functions_deploy.yaml
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: Deploy
uses: google-github-actions/deploy-cloud-functions@main
with:
credentials: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PHOTOBOOTH_DEV }}
name: shareImage
runtime: nodejs14
project_id: io-photobooth-dev

View File

@ -1,16 +0,0 @@
name: firebase_functions_deploy_production
on: workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: Deploy
uses: google-github-actions/deploy-cloud-functions@main
with:
credentials: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
name: shareImage
runtime: nodejs14
project_id: io-photobooth-20667

View File

@ -30,7 +30,7 @@ module.exports = {
'quotes': [ 'error', 'single' ],
'array-bracket-spacing': [ 'error', 'always' ],
'object-curly-spacing': [ 'error', 'always' ],
'max-len': [ 'error', { code: 100, tabWidth: 2 } ],
'max-len': [ 'error', { code: 130, tabWidth: 2 } ],
'indent': [ 'error', 2 ],
'no-unused-vars': [ 'warn' ],
'new-cap': [ 'warn' ],