Skip to content

Commit

Permalink
GH: Update of release process
Browse files Browse the repository at this point in the history
  • Loading branch information
ebranlard committed Oct 26, 2024
1 parent 07187cb commit 649dc7b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ jobs:
elif [[ $GITHUB_REF == *"main"* ]]; then
echo ">>> This is not a tagged version, but on the main branch"
export VERSION_TAG=$CURRENT_TAG
export VERSION_NAME="$CURRENT_TAG-`git rev-list $CURRENT_TAG.. --count`"
export VERSION_COUNT="`git rev-list $CURRENT_TAG.. --count`"
echo "VERSION_COUNT >$VERSION_COUNT<"
if [[ $VERSION_COUNT == "" ]]; then
export VERSION_NAME="$CURRENT_TAG-0"
else
export VERSION_NAME="$CURRENT_TAG-$VERSION_COUNT"
fi
export FULL_VERSION_NAME="version $VERSION_NAME"
#elif [[ $BRANCH == "dev" ]]; then
# echo ">>> This is not a tagged version, but on the dev branch"
Expand Down
19 changes: 11 additions & 8 deletions _tools/NewRelease.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,32 @@
# Creating a new release

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

- Tag new version v0.x:
git tag -a v0.x

- Push tags:
git push --tags

- Github actions looks at GITHUB_REF to see if it's a tag. If it's a tag, it should push to it.
Otherwise, it pushes to the tag defined by CURRENT_DEV_TAG

- Make sure things worked

- checkout dev and create a new dev tag, e.g. v0.3-dev
- checkout dev and create a new dev tag, e.g.
git tag v0.6-dev


- Rename vdev to v0.3-dev
git tag v0.3-dev vdev
- (OLD: Rename vdev to v0.6-dev
git tag v0.6-dev vdev
git tag -d vdev
git push origin v0.3-dev :vdev
git push origin v0.3-dev :vdev )



Expand Down

0 comments on commit 649dc7b

Please sign in to comment.