mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 21:14:35 -07:00
15th time is a charm
This commit is contained in:
@@ -98,6 +98,7 @@ jobs:
|
|||||||
npm run release:version ${{ steps.version.outputs.RELEASE_VERSION }}
|
npm run release:version ${{ steps.version.outputs.RELEASE_VERSION }}
|
||||||
|
|
||||||
- name: Commit package versions
|
- name: Commit package versions
|
||||||
|
id: commit_step
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
@@ -106,8 +107,10 @@ jobs:
|
|||||||
echo "Changes detected, creating commit."
|
echo "Changes detected, creating commit."
|
||||||
git commit -m "chore(release): ${{ steps.version.outputs.RELEASE_TAG }}"
|
git commit -m "chore(release): ${{ steps.version.outputs.RELEASE_TAG }}"
|
||||||
git push --set-upstream origin ${{ steps.release_branch.outputs.BRANCH_NAME }} --follow-tags
|
git push --set-upstream origin ${{ steps.release_branch.outputs.BRANCH_NAME }} --follow-tags
|
||||||
|
echo "committed=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "No version changes to commit."
|
echo "No version changes to commit."
|
||||||
|
echo "committed=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create GitHub Release and Tag
|
- name: Create GitHub Release and Tag
|
||||||
@@ -115,10 +118,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
RELEASE_BRANCH: ${{ steps.release_branch.outputs.BRANCH_NAME }}
|
RELEASE_BRANCH: ${{ steps.release_branch.outputs.BRANCH_NAME }}
|
||||||
|
COMMITTED: ${{ steps.commit_step.outputs.committed }}
|
||||||
run: |
|
run: |
|
||||||
|
TARGET_COMMITISH="main"
|
||||||
|
if [[ "$COMMITTED" == "true" ]]; then
|
||||||
|
TARGET_COMMITISH="$RELEASE_BRANCH"
|
||||||
|
fi
|
||||||
|
echo "Creating release against target: $TARGET_COMMITISH"
|
||||||
gh release create ${{ steps.version.outputs.RELEASE_TAG }} \
|
gh release create ${{ steps.version.outputs.RELEASE_TAG }} \
|
||||||
bundle/gemini.js \
|
bundle/gemini.js \
|
||||||
--target "$RELEASE_BRANCH" \
|
--target "$TARGET_COMMITISH" \
|
||||||
--title "Release ${{ steps.version.outputs.RELEASE_TAG }}" \
|
--title "Release ${{ steps.version.outputs.RELEASE_TAG }}" \
|
||||||
--generate-notes
|
--generate-notes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user