Merge pull request #28 from MavScriptBlu/dependabot/npm_and_yarn/vite… #10
This file contains hidden or 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: Deploy to Cloud Run | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Authenticate to Google Cloud | |
| 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 | |
| with: | |
| project_id: gen-lang-client-0167114643 | |
| - name: Build and Deploy to Cloud Run | |
| run: | | |
| gcloud builds submit \ | |
| --config cloudbuild.yaml \ | |
| --substitutions _VITE_GEMINI_API_KEY=${{ secrets.VITE_GEMINI_API_KEY }} |