Update Google Services JSON file and remove unused code #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy user-auth service to Google App Engine | |
on: | |
push: | |
paths: | |
- user-auth-service/** | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Create Google Services JSON File | |
working-directory: ./user-auth-service | |
env: | |
VIZIA_SERVICE_ACCOUNT: ${{ secrets.VIZIA_SERVICE_ACCOUNT }} | |
run: echo $VIZIA_SERVICE_ACCOUNT | base64 -di > vizia-sa.json | |
- name: Create app.yaml file | |
working-directory: ./user-auth-service | |
run: | | |
touch app.yaml | |
echo "${{ secrets.USER_AUTH_APP_YAML }}" >> app.yaml | |
- name: Setup Node.js and yarn | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ./user-auth-service | |
- name: Google Cloud Auth | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
- name: Set up Cloud SDK | |
uses: "google-github-actions/setup-gcloud@v2" | |
- name: Deploy to Google App Engine | |
run: | | |
cd user-auth-service | |
gcloud app deploy app.yaml --quiet |