File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 45
45
id : version-getter
46
46
run : |
47
47
VERSION="$(hatch version | cut -d '.' -f 1,2)"
48
- # The first stable documentation on Readme for a version is created when
49
- # the first x.x.0 version is released.
50
- # Up until that point we need to push to an "-unstable" suffixed version.
51
- # This also means that following RCs for patch releases are pushed to the
52
- # stable docs, for the time being we're ok with that.
53
- # `main` branch docs will be handled correctly too and get pushed to an
54
- # unstable documentation.
55
- IS_UNSTABLE=$(hatch version | grep -v -q "0-rc")
56
- if [ "$IS_UNSTABLE" ]; then
48
+ CURRENT_BRANCH="${{ github.ref_name }}"
49
+ # If we're on `main` branch we should push docs to the unstable version
50
+ if [ "$CURRENT_BRANCH" = "main" ]; then
57
51
VERSION="$VERSION-unstable"
58
52
fi
59
53
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments