This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
feat: release v0.6.4 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release on Version Change | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "databend_py/VERSION" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
- name: Set up Python | |
run: uv python install | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Release Package and Tag | |
env: | |
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
run: | | |
export VERSION=$(cat databend_py/VERSION) | |
git config user.name "hantmac" | |
git config user.email "[email protected]" | |
git tag -a "v$VERSION" -m "Release Version $VERSION" | |
git push origin "v$VERSION" | |
uv publish | |
echo "show user name:" | |
echo ${{ secrets.TWINE_USERNAME }} | |
twine upload -u ${{ secrets.TWINE_USERNAME }} -p ${{ secrets.TWINE_PASSWORD }} dist/* |