Skip to content

chore(deps)(deps): bump com.google.genai:google-genai (#292) #160

chore(deps)(deps): bump com.google.genai:google-genai (#292)

chore(deps)(deps): bump com.google.genai:google-genai (#292) #160

Workflow file for this run

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Publish Docs & Javadoc
on:
push:
branches:
- main
# 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
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: "21"
distribution: "temurin"
cache: "maven"
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: "22"
cache: "npm"
cache-dependency-path: docs/package-lock.json
- name: Generate Javadoc
run: mvn javadoc:aggregate -q
- name: Install docs dependencies
working-directory: docs
run: npm install
- name: Build docs site
working-directory: docs
run: npm run build
- name: Copy Javadoc into docs output
run: |
mkdir -p docs/dist/javadoc
cp -r target/javadoc/javadoc/* docs/dist/javadoc/ 2>/dev/null || \
cp -r target/javadoc/apidocs/* docs/dist/javadoc/ 2>/dev/null || \
cp -r target/site/apidocs/* docs/dist/javadoc/ 2>/dev/null || true
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs/dist
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@v5