Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: ./bin/make ci
- run: ./bin/make firebase-deploy
env:
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_EVY_LANG }}

release:
runs-on: ubuntu-latest
Expand All @@ -22,3 +25,6 @@ jobs:
- run: ./bin/make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./bin/make firebase-deploy-prod
env:
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_EVY_LANG }}
17 changes: 0 additions & 17 deletions .github/workflows/firebase-hosting-merge.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/firebase-hosting-pull-request.yml

This file was deleted.

5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ frontend-serve: frontend ## Build frontend and serve on free port

# --- firebase -----------------------------------------------------------------
CHANNEL ?= dev
AUTH_CI = $(if $(CI), { printenv FIREBASE_SERVICE_ACCOUNT > out/gac.json; export GOOGLE_APPLICATION_CREDENTIALS=out/gac.json; };)

firebase-deploy-prod: firebase-public ## Deploy to live channel on firebase, use with care!
firebase --config firebase/firebase.json deploy
$(AUTH_CI) firebase --config firebase/firebase.json deploy

firebase-deploy: firebase-public ## Deploy to dev (or other) channel on firebase
firebase --config firebase/firebase.json hosting:channel:deploy $(CHANNEL)
$(AUTH_CI) firebase --config firebase/firebase.json hosting:channel:deploy $(CHANNEL)

firebase-emulate: firebase-public ## Run firebase emulator for auth, hosting and datastore
firebase --config firebase/firebase.json emulators:start
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion bin/firebase