Skip to content

Commit 649dc7b

Browse files
committed
GH: Update of release process
1 parent 07187cb commit 649dc7b

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ jobs:
4747
elif [[ $GITHUB_REF == *"main"* ]]; then
4848
echo ">>> This is not a tagged version, but on the main branch"
4949
export VERSION_TAG=$CURRENT_TAG
50-
export VERSION_NAME="$CURRENT_TAG-`git rev-list $CURRENT_TAG.. --count`"
50+
export VERSION_COUNT="`git rev-list $CURRENT_TAG.. --count`"
51+
echo "VERSION_COUNT >$VERSION_COUNT<"
52+
if [[ $VERSION_COUNT == "" ]]; then
53+
export VERSION_NAME="$CURRENT_TAG-0"
54+
else
55+
export VERSION_NAME="$CURRENT_TAG-$VERSION_COUNT"
56+
fi
5157
export FULL_VERSION_NAME="version $VERSION_NAME"
5258
#elif [[ $BRANCH == "dev" ]]; then
5359
# echo ">>> This is not a tagged version, but on the dev branch"

_tools/NewRelease.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,32 @@
22
# Creating a new release
33

44
Steps:
5-
- Change version in setup.py
6-
- Change PROG\_VERSION in pydateview/main.py
7-
- Change version in installler.cfg
8-
- Change CURRENT\_DEV\_TAG in .github/workflows/tests.yml (not pretty...)
5+
- Change version in ../setup.py
6+
- Change PROG\_VERSION in ../pydateview/main.py
7+
- Change version in ../installer.cfg
8+
- Change CURRENT\_DEV\_TAG in ../.github/workflows/tests.yml (not pretty...)
99
- Commit changes and push to pull request
1010
- Merge pull request from old to new version
1111

1212
- Tag new version v0.x:
1313
git tag -a v0.x
14+
1415
- Push tags:
1516
git push --tags
17+
1618
- Github actions looks at GITHUB_REF to see if it's a tag. If it's a tag, it should push to it.
1719
Otherwise, it pushes to the tag defined by CURRENT_DEV_TAG
1820

1921
- Make sure things worked
2022

21-
- checkout dev and create a new dev tag, e.g. v0.3-dev
23+
- checkout dev and create a new dev tag, e.g.
24+
git tag v0.6-dev
2225

2326

24-
- Rename vdev to v0.3-dev
25-
git tag v0.3-dev vdev
27+
- (OLD: Rename vdev to v0.6-dev
28+
git tag v0.6-dev vdev
2629
git tag -d vdev
27-
git push origin v0.3-dev :vdev
30+
git push origin v0.3-dev :vdev )
2831

2932

3033

0 commit comments

Comments
 (0)