Skip to content

Deploy to Developer Portal DEV Bucket #51

Deploy to Developer Portal DEV Bucket

Deploy to Developer Portal DEV Bucket #51

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
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_BRANCH: ${{ github.event.number || github.ref_name }}
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: 'npm'
- name: Install dependencies
run: npm ci
- name: Build documentation website
run: npm run docs:build -- --config docusaurus.config.dev.js
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_SA_KEY_DEV }}
- name: Deploy to Developer Portal Bucket
uses: google-github-actions/upload-cloud-storage@v2
with:
path: './docusaurus/website/build/'
destination: 'staging-developer-portal/plugin-tools'
parent: false