Skip to content
Merged
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
27 changes: 13 additions & 14 deletions .github/workflows/package-and-upload-assets.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Package and Upload Release Assets

# Global variables
env:
PACKAGE_NAME: "security"
FILES_TO_PACKAGE: "gemini-extension.json BIGQUERY.md LICENSE tools.yaml"
GCS_BUCKET_URL: "https://storage.googleapis.com/genai-toolbox/geminicli"

on:
release:
types: [created]
Expand All @@ -17,7 +23,7 @@ permissions:
contents: write

jobs:
build-and-package:
build:
runs-on: ubuntu-latest
steps:
# 1. Checks out your repository's code
Expand All @@ -42,16 +48,9 @@ jobs:
- name: Run build
run: cd mcp-server && npm run build

# 5. Create TAR archive with MCP server dependencies
# Exclude root node_modules but INCLUDE mcp-server/node_modules
- name: Create TAR archive
run: tar -cvzf ../security-release.tar.gz --exclude='.git' --exclude='.github' --exclude='./assets' . && mv ../security-release.tar.gz .

# 6. Upload the TAR archive as a release asset
- name: Upload archive to GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload \
${{ github.event.release.tag_name || inputs.tag_name }} \
security-release.tar.gz
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: .

Loading