15th time is a charm

This commit is contained in:
mkorwel
2025-07-03 23:08:17 -07:00
parent b378a99a59
commit 6e05729dd9
2 changed files with 17 additions and 6 deletions

View File

@@ -24,11 +24,17 @@ steps:
args:
- -c
- |
if [ "$_OFFICIAL_RELEASE" = "true" ]; then
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA" # Default to SHA
if [[ "$TAG_NAME" == *"+nightly"* ]]; then
echo "Nightly release detected."
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
elif [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Official release detected."
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
else
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA"
echo "Development/RC release detected. Using commit SHA as tag."
fi
echo "Using Docker image tag: $GEMINI_SANDBOX_IMAGE_TAG"
npm run build:sandbox:fast
env:
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
@@ -40,11 +46,17 @@ steps:
args:
- -c
- |
if [ "$_OFFICIAL_RELEASE" = "true" ]; then
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA" # Default to SHA
if [[ "$TAG_NAME" == *"+nightly"* ]]; then
echo "Nightly release detected."
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
elif [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Official release detected."
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
else
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA"
echo "Development/RC release detected. Using commit SHA as tag."
fi
echo "Using Docker image tag: $GEMINI_SANDBOX_IMAGE_TAG"
npm run publish:sandbox
env:
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
@@ -54,5 +66,4 @@ options:
dynamicSubstitutions: true
substitutions:
_OFFICIAL_RELEASE: 'false'
_CONTAINER_TOOL: 'docker'

View File

@@ -149,7 +149,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.WOMBAT_TOKEN_CORE }}
- name: Install latest core package
run: npm install @google/gemini-cli-core@${{ steps.version.outputs.RELEASE_VERSION }} --workspace=@google/gemini-cli --save-exact
run: npm install @google/gemini-cli-core@${{ steps.version.outputs.NPM_TAG }} --workspace=@google/gemini-cli --save-exact
- name: Publish @google/gemini-cli
run: npm publish --workspace=@google/gemini-cli --tag=${{ steps.version.outputs.NPM_TAG }} ${{ inputs.dry_run && '--dry-run' || '' }}