Skip to content

Update terminal-commands.mdx #47

Update terminal-commands.mdx

Update terminal-commands.mdx #47

Workflow file for this run

name: Deploy to Google App Engine
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
- name: Install dependencies
run: pnpm install
- name: Build Next Project
run: pnpm build
- 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: |
gcloud app deploy app.yaml --quiet