File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 47
47
elif [[ $GITHUB_REF == *"main"* ]]; then
48
48
echo ">>> This is not a tagged version, but on the main branch"
49
49
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
51
57
export FULL_VERSION_NAME="version $VERSION_NAME"
52
58
#elif [[ $BRANCH == "dev" ]]; then
53
59
# echo ">>> This is not a tagged version, but on the dev branch"
Original file line number Diff line number Diff line change 2
2
# Creating a new release
3
3
4
4
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...)
9
9
- Commit changes and push to pull request
10
10
- Merge pull request from old to new version
11
11
12
12
- Tag new version v0.x:
13
13
git tag -a v0.x
14
+
14
15
- Push tags:
15
16
git push --tags
17
+
16
18
- Github actions looks at GITHUB_REF to see if it's a tag. If it's a tag, it should push to it.
17
19
Otherwise, it pushes to the tag defined by CURRENT_DEV_TAG
18
20
19
21
- Make sure things worked
20
22
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
22
25
23
26
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
26
29
git tag -d vdev
27
- git push origin v0.3-dev : vdev
30
+ git push origin v0.3-dev : vdev )
28
31
29
32
30
33
You can’t perform that action at this time.
0 commit comments