Skip to content

Commit

Permalink
test triggering on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Jun 12, 2024
1 parent 811ceda commit 863eee3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/deploy_api.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy api to GAE

on:
pull_request:
branches: ["main"]

workflow_dispatch:
inputs:
environment:
Expand All @@ -18,6 +21,14 @@ jobs:
build-test-deploy:
runs-on: ubuntu-latest
steps:
- name: GCP 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: Checkout
uses: actions/checkout@v4

Expand Down Expand Up @@ -51,13 +62,5 @@ jobs:
- name: Run tests
run: pnpm api-test

- name: GCP 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

- nmae: Deploy to GAE
run: gcloud info && ./deploy_api.sh --${{ inputs.environment }}

0 comments on commit 863eee3

Please sign in to comment.