mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
15th time is a charm
This commit is contained in:
@@ -24,11 +24,17 @@ steps:
|
|||||||
args:
|
args:
|
||||||
- -c
|
- -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}"
|
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
|
||||||
else
|
else
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA"
|
echo "Development/RC release detected. Using commit SHA as tag."
|
||||||
fi
|
fi
|
||||||
|
echo "Using Docker image tag: $GEMINI_SANDBOX_IMAGE_TAG"
|
||||||
npm run build:sandbox:fast
|
npm run build:sandbox:fast
|
||||||
env:
|
env:
|
||||||
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
||||||
@@ -40,11 +46,17 @@ steps:
|
|||||||
args:
|
args:
|
||||||
- -c
|
- -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}"
|
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
|
||||||
else
|
else
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA"
|
echo "Development/RC release detected. Using commit SHA as tag."
|
||||||
fi
|
fi
|
||||||
|
echo "Using Docker image tag: $GEMINI_SANDBOX_IMAGE_TAG"
|
||||||
npm run publish:sandbox
|
npm run publish:sandbox
|
||||||
env:
|
env:
|
||||||
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
||||||
@@ -54,5 +66,4 @@ options:
|
|||||||
dynamicSubstitutions: true
|
dynamicSubstitutions: true
|
||||||
|
|
||||||
substitutions:
|
substitutions:
|
||||||
_OFFICIAL_RELEASE: 'false'
|
|
||||||
_CONTAINER_TOOL: 'docker'
|
_CONTAINER_TOOL: 'docker'
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ jobs:
|
|||||||
NODE_AUTH_TOKEN: ${{ secrets.WOMBAT_TOKEN_CORE }}
|
NODE_AUTH_TOKEN: ${{ secrets.WOMBAT_TOKEN_CORE }}
|
||||||
|
|
||||||
- name: Install latest core package
|
- 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
|
- name: Publish @google/gemini-cli
|
||||||
run: npm publish --workspace=@google/gemini-cli --tag=${{ steps.version.outputs.NPM_TAG }} ${{ inputs.dry_run && '--dry-run' || '' }}
|
run: npm publish --workspace=@google/gemini-cli --tag=${{ steps.version.outputs.NPM_TAG }} ${{ inputs.dry_run && '--dry-run' || '' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user