Skip to content

Commit 92ef2c8

Browse files
Merge pull request Backblaze#990 from reef-technologies/release_instruction_improvement
simplify release instructions
2 parents 8122bb6 + 776a2ec commit 92ef2c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
import nox
2222

23+
UPSTREAM_REPO_URL = '[email protected]:Backblaze/B2_Command_Line_Tool.git'
24+
2325
CI = os.environ.get('CI') is not None
2426
CD = CI and (os.environ.get('CD') is not None)
2527
INSTALL_SDK_FROM = os.environ.get('INSTALL_SDK_FROM')
@@ -692,10 +694,11 @@ def make_release_commit(session):
692694

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

701704

0 commit comments

Comments
 (0)