Skip to content

Merge pull request #70 from sourcifyeth/chore/context7-claim #146

Merge pull request #70 from sourcifyeth/chore/context7-claim

Merge pull request #70 from sourcifyeth/chore/context7-claim #146

Workflow file for this run

name: Release on Google Bucket
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: "auth"
uses: "google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed" # v2.1.13
with:
workload_identity_provider: "projects/1019539084286/locations/global/workloadIdentityPools/github/providers/sourcify"
service_account: "sourcify-docs-cd@sourcify-project.iam.gserviceaccount.com"
- name: Set up Node.js
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: "22.4"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: "setup-gcloud"
uses: "google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f" # v2.2.1
- name: "clear-bucket"
run: gsutil -m rm gs://sourcify-docs-bucket/** || true
- name: "upload-files"
uses: "google-github-actions/upload-cloud-storage@c0f6160ff80057923ff50e5e567695cea181ec23" # v2.2.4
with:
path: "build"
destination: "sourcify-docs-bucket"
parent: false
glob: "**/*"