Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhiy1 authored Mar 27, 2024
1 parent 6821356 commit f3ea445
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to Google App Engine

on:
push:
branches:
- master
jobs:
deploy:
environment: Dev Test
runs-on: ubuntu-latest
steps:
- id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2

- name: Set default GCP project
run: gcloud config set project ${{ secrets.GCP_PROJECT_ID }}

- name: Checkout code
uses: actions/checkout@v2

- name: Deploy to Google App Engine
run: |
gcloud app deploy --quiet \
--set-env-vars \
JWTKey=${{ secrets.JWTKEY }},\
MongoConnectionString=${{ secrets.MONGOCONNECTIONSTRING }}

0 comments on commit f3ea445

Please sign in to comment.