Skip to content

Commit

Permalink
feat: yaml init
Browse files Browse the repository at this point in the history
  • Loading branch information
MRoyhanF committed Nov 8, 2024
1 parent 622816d commit 1ee600a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy..yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy to GCP App Engine

on:
push:
branches: ["main"]

jobs:
deploy:
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v4

- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true

- name: Deploy to Google App Engine
run: gcloud app deploy --quiet
4 changes: 4 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
runtime: nodejs20
instance_class: F1
env_variables:
NODE_ENV: "production"

0 comments on commit 1ee600a

Please sign in to comment.