This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
fix: user permissions #7
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: Workspace deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: npm install | |
- name: Build TypeScript | |
run: npm run build | |
- name: Setup GCP Authentication | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
- uses: jacoz/[email protected] | |
with: | |
path: app.yaml | |
env: | |
DB_URI: ${{ secrets.DB_URI }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
- name: Deploy to App Engine | |
run: npm run deploy |