Skip to content

Commit

Permalink
Merge pull request #473 from reef-technologies/release_instruction_im…
Browse files Browse the repository at this point in the history
…provement

simplify release step
  • Loading branch information
mjurbanski-reef authored Feb 5, 2024
2 parents a75d4c4 + 8b2d328 commit 4babc1c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import nox

UPSTREAM_REPO_URL = 'git@github.com:Backblaze/b2-sdk-python.git'

# Required for PDM to use nox's virtualenvs
os.environ.update({"PDM_IGNORE_SAVED_PYTHON": "1"})

Expand Down Expand Up @@ -243,10 +245,11 @@ def make_release_commit(session):

session.log(
f'CHANGELOG updated, changes ready to commit and push\n'
f' git remote add upstream {UPSTREAM_REPO_URL!r} 2>/dev/null || git remote get-url upstream\n'
f' git commit -m "release {version}"\n'
f' git tag v{version}\n'
f' git push {{UPSTREAM_NAME}} v{version}\n'
f' git push {{UPSTREAM_NAME}} {current_branch}'
f' git push upstream v{version}\n'
f' git push upstream {current_branch}'
)


Expand Down

0 comments on commit 4babc1c

Please sign in to comment.