Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Update gcloud tools to use the main breanch #24

Update gcloud tools to use the main breanch

Update gcloud tools to use the main breanch #24

Workflow file for this run

name: deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: Use Google Cloud CLI
uses: google-github-actions/setup-gcloud@main
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Install dependencies
run: npm install
- name: Build
run: npm run build:prpl-server
- name: Deploy
run: gcloud app deploy server --project=${{ secrets.GCP_PROJECT_ID }}