Skip to content

Commit 49ffa56

Browse files
fix issue with releases and publishing (#531)
1 parent 4828ed9 commit 49ffa56

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/MAINTAINER.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ git remote update
3434
git pull origin dev
3535

3636
# 4. Created a release branch that tracks origin/dev
37-
git checkout -b release/$RELEASE origin/dev
37+
git checkout -b release/v$RELEASE origin/dev
3838

3939
# 6. Bump version in release branch
4040
# edit pyproject.toml file to update the version
@@ -44,7 +44,7 @@ git add CHANGELOG.md
4444
git commit -m "Version $RELEASE"
4545

4646
# 7. Pushed release branch to remote repository
47-
git push --set-upstream origin release/$RELEASE
47+
git push --set-upstream origin release/v$RELEASE
4848

4949
# 8. Open a "pull request" in GitHub for team to verify the release
5050

@@ -55,31 +55,31 @@ git checkout main
5555
git pull origin main
5656

5757
# 11. Merged release branch into main branch
58-
git merge release/$RELEASE
58+
git merge release/v$RELEASE
5959

6060
# 12. Tagged the release point by creating a new tag
61-
git tag -a $RELEASE -m "Release v$RELEASE"
61+
git tag -a v$RELEASE -m "Release version $RELEASE"
6262

6363
# 13. Pushed main branch to remote repository
6464
git push origin main
6565

6666
# 14. Pushed the tags to remote repository
67-
git push origin --tags
67+
git push origin v$RELEASE
6868

6969
# 15. Checkout into dev branch
7070
git checkout dev
7171

7272
# 16. Merged release branch into dev branch
73-
git merge release/$RELEASE
73+
git merge release/v$RELEASE
7474

7575
# 17. Pushed dev branch to remote repository
7676
git push origin dev
7777

7878
# 18. Removed release branch from the local repository
79-
git branch -D release/$RELEASE
79+
git branch -D release/v$RELEASE
8080

8181
# 19. Removed release branch from the remote repository
82-
git push origin :release/$RELEASE
82+
git push origin :release/v$RELEASE
8383

8484

8585
CREDIT: http://www.inanzzz.com

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
79

810
jobs:
911
build:

0 commit comments

Comments
 (0)