8000 chore(actions): migrate workflows to Node.js 24-compatible GitHub Actions by Copilot · Pull Request #7 · eLyiN/gemini-bridge · GitHub
[go: up one dir, main page]

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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Node.js for Gemini CLI
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: '18'

Expand Down
26 changes: 6 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -38,9 +38,8 @@ jobs:
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
- name: Create GitHub Release and upload wheel
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -65,24 +64,11 @@ jobs:
See [README.md](README.md) for full documentation.
draft: false
prerelease: false

- name: Find wheel file
id: find_wheel
run: echo "wheel_path=$(find dist -name '*.whl' -type f)" >> $GITHUB_OUTPUT

- name: Upload wheel to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.find_wheel.outputs.wheel_path }}
asset_name: gemini_bridge-${{ steps.tag.outputs.tag }}-py3-none-any.whl
asset_content_type: application/octet-stream
files: dist/*.whl

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# Use Trusted Publishing (no password needed)
# Configure at: https://pypi.org/manage/project/gemini-bridge/settings/publishing/
attestations: true
attestations: true
Loading
0