build(deps-dev): bump vite in /game-of-life/with-vite (#415) #60
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: Deploy Conway's Game of Life (Vite) | |
on: | |
push: | |
branches: [main] | |
paths: ["game-of-life/with-vite/**"] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: "read" | |
id-token: "write" | |
env: | |
PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./game-of-life/with-vite | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
# Authenticate to Google Cloud | |
- name: Google Auth | |
id: auth | |
uses: "google-github-actions/auth@v2" | |
with: | |
token_format: "access_token" | |
workload_identity_provider: "${{ secrets.WIF_PROVIDER }}" | |
service_account: "${{ secrets.WIF_SERVICE_ACCOUNT }}" | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
with: | |
project_id: "${{ env.PROJECT_ID }}" | |
- name: Deploy to Cloud Build | |
run: gcloud builds submit --substitutions=_PROJECT_ID="${{ env.PROJECT_ID }}" |