Skip to content

add token

add token #9

Workflow file for this run

name: Build / Test / Deploy
on:
push:
branches:
- main
env:
PROJECT_ID: my-project # TODO: update to your Google Cloud project ID
REGION: us-central1 # TODO: update to your region
SERVICE: my-service # TODO: update to your service name
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Lint & Build
working-directory: ./app
run: npm ci && npm run lint && npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ./app/out
Deploy:
permissions:

Check failure on line 30 in .github/workflows/develop.yaml

View workflow run for this annotation

GitHub Actions / Build / Test / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/develop.yaml (Line: 30, Col: 17): Unexpected value '' .github/workflows/develop.yaml (Line: 31, Col: 5): Unexpected value 'contents'
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
needs: Build
environment: Development
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artefacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: 'Authenticate'
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.GCP_BUCKET }}
workload_identity_provider: ${{ secrets.GCP_WIP }}
- name: Cloud Storage Uploader
uses: google-github-actions/upload-cloud-storage@v2
with:
path: 'build-artifacts'
destination: ${{ secrets.GCP_BUCKET }}
parent: false