-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (38 loc) · 1.05 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release on Google Bucket
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: "auth"
uses: "google-github-actions/auth@v2"
with:
workload_identity_provider: "projects/1019539084286/locations/global/workloadIdentityPools/github/providers/sourcify"
service_account: "[email protected]"
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: "upload-files"
uses: "google-github-actions/upload-cloud-storage@v2"
with:
path: "build"
destination: "sourcify-docs-bucket"
parent: false
glob: "**/*"