-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (36 loc) · 1.16 KB
/
deploy-to-dev-portal-dev.yml
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
39
40
41
42
name: Deploy to Developer Portal DEV Bucket
on:
workflow_dispatch:
inputs:
branch:
description: "Which branch to use?"
default: "main"
jobs:
deploy:
name: Deploy docs to Developer Portal Bucket
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install dependencies
uses: ./.github/actions/yarn-nm-install
- name: Build documentation website
run: yarn docs:build:dev
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_SA_KEY_DEV }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Deploy to Developer Portal Bucket'
run: |
gsutil -m rsync -r -d -c ./docusaurus/website/build/ gs://staging-developer-portal/scenes