diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc79952e9..885d33701 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,6 +89,8 @@ jobs: sh ./dev/deploy/build.sh echo "Setting version $PKG_VERSION_STRICT..." sed -i -r -e "s/^__version__ += '.*'$/__version__ = '$PKG_VERSION_STRICT'/" ietf/__init__.py + sed -i -r -e "s/^__release_hash__ += '.*'$/__release_hash__ = '$GITHUB_SHA'/" ietf/__init__.py + sed -i -r -e "s/^__release_branch__ += '.*'$/__release_branch__ = '$GITHUB_REF_NAME'/" ietf/__init__.py echo "Build release tarball..." mkdir -p /home/runner/work/release tar -czf /home/runner/work/release/release.tar.gz -X dev/deploy/exclude-patterns.txt . diff --git a/ietf/__init__.py b/ietf/__init__.py index 5e55e8c20..69d0844c1 100644 --- a/ietf/__init__.py +++ b/ietf/__init__.py @@ -6,7 +6,13 @@ from . import checks # pyflakes:ignore # Version must stay in single quotes for automatic CI replace # Don't add patch number here: -__version__ = '7.46.1.dev0' +__version__ = '7.0.0-dev' + +# Release hash must stay in single quotes for automatic CI replace +__release_hash__ = '' + +# Release branch must stay in single quotes for automatic CI replace +__release_branch__ = '' # set this to ".p1", ".p2", etc. after patching __patch__ = ""