Skip to content

Upload example-vite to Google Cloud Storage #10

Upload example-vite to Google Cloud Storage

Upload example-vite to Google Cloud Storage #10

name: GitHub Actions Demo
run-name: Upload example-vite to Google Cloud Storage
on: [push]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Build
run: pnpm run build
- uses: 'google-github-actions/auth@v2'
with:
project_id: 'spaceblanc'
workload_identity_provider: projects/670988994997/locations/global/workloadIdentityPools/github/providers/ukstv-github