Skip to content

Expand role resource name validation to support full enum range (#56) #48

Expand role resource name validation to support full enum range (#56)

Expand role resource name validation to support full enum range (#56) #48

name: Deploy Docs Site
# Triggers on tags like docs/v1.0.0, docs/v2.1.3, etc.
on:
push:
tags:
- 'docs/v*.*.*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
node_modules
.yarn/cache
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-docs-deps-${{ hashFiles('yarn.lock', 'tool/protoc-gen-meshdoc/go.mod') }}
restore-keys: |
${{ runner.os }}-docs-deps-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install buf CLI
run: |
# Install buf CLI for protobuf generation
curl -sSL "https://github.com/bufbuild/buf/releases/latest/download/buf-$(uname -s)-$(uname -m)" -o "/tmp/buf"
sudo mv "/tmp/buf" "/usr/local/bin/buf"
sudo chmod +x "/usr/local/bin/buf"
- name: Generate documentation from protobuf
run: |
# Use the optimized docs-only generation
./dev/tool.sh generate --targets=docs
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Docusaurus
run: yarn build:docs
env:
NODE_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4