Skip to content

Commit

Permalink
fix: release action (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashenC authored Sep 20, 2023
1 parent 54a1620 commit 6e541c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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 "[email protected]"
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

0 comments on commit 6e541c7

Please sign in to comment.