Skip to content

Commit

Permalink
Edits angular pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nabil-hfz committed Dec 31, 2023
1 parent de7d3d7 commit e6499f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/angular-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ jobs:
run: firebase experiments:enable webframeworks
working-directory: ./frontend

- name: Deploy to Firebase Hosting
run: firebase deploy --only hosting --token "$FIREBASE_TOKEN"
- name: Setup Google Cloud Credentials
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
echo "$SERVICE_ACCOUNT_KEY" > ./gcloud-service-key.json
echo "GOOGLE_APPLICATION_CREDENTIALS=${PWD}/gcloud-service-key.json" >> $GITHUB_ENV
- name: Deploy to Firebase Hosting
run: firebase deploy --only hosting
# env:
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} # Optional if we use service account, should be deleted later on
working-directory: ./frontend
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ yarn-error.log
/libpeerconnection.log
testem.log
/typings
.keys/

# System files
.DS_Store
Expand Down

0 comments on commit e6499f4

Please sign in to comment.