Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/release-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and Package Web Assets

on:
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag to upload the zip to (e.g. v1.0.0)'
required: true

jobs:
build-and-package:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Set up Node.js (Latest LTS)
uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI

- name: Build Angular app
run: npm run build

- name: Zip built assets
run: |
cd dist/agent_framework_web/browser
zip -r ../../../adk-web-browser.zip .

- name: Upload Release Asset (Production Build)
run: |
if gh release view ${{ github.event.inputs.release_tag }} >/dev/null 2>&1; then
echo "Release exists. Uploading asset..."
gh release upload ${{ github.event.inputs.release_tag }} adk-web-browser.zip --clobber
else
echo "Release does not exist. Creating release and uploading asset..."
gh release create ${{ github.event.inputs.release_tag }} adk-web-browser.zip --title "${{ github.event.inputs.release_tag }}" --notes "Manual release built from adk-web@${{ github.sha }}"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/assets/config/runtime-config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"backendUrl": "http://localhost:8000"
"backendUrl": ""
}
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!doctype html>
<!--
Copyright 2025 Google LLC
Copyright 2026 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading