Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: release action #1177

Merged
merged 3 commits into from
Sep 20, 2023
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: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ jobs:
- name: Release.
env:
GITHUB_KEY: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
run: |
source test_evadb/bin/activate
pip install twine
git config --global user.email "caojiashen24@gmail.com"
git config --global user.name "Jiashen Cao"
python script/releasing/releaser.py -n patch -u # changelog
python script/releasing/releaser.py -n patch -r # release
python script/releasing/releaser.py -n patch -r # release
python script/releasing/releaser.py -n patch -p # push to PyPI
python script/releasing/releaser.py -n patch -a # push the release
python script/releasing/releaser.py -n patch -b # version bump up
1 change: 1 addition & 0 deletions evadb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
_MINOR = "3"
_REVISION = "5"


VERSION_SHORT = f"{_MAJOR}.{_MINOR}"
VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}"
3 changes: 1 addition & 2 deletions script/releasing/releaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def publish_wheels(tag):
def upload_assets(changelog, tag):
# Authentication token
access_token = os.environ["GITHUB_KEY"]
print(access_token)
# Repository information
repo_owner = "georgia-tech-db"
repo_name = "evadb"
Expand Down Expand Up @@ -296,7 +295,7 @@ def bump_up_version(next_version):
run_command("git add . -u")
run_command("git commit -m '[BUMP]: " + NEXT_RELEASE + "'")
run_command("git push --set-upstream origin bump-" + NEXT_RELEASE)
run_command(f"gh pr create -B staging -H bump-{NEXT_RELEASE}")
run_command(f"gh pr create -B staging -H bump-{NEXT_RELEASE} --title 'Bump Version to {NEXT_RELEASE}' --body 'Bump Version to {NEXT_RELEASE}'")


# ==============================================
Expand Down