@@ -85,10 +85,10 @@ jobs:
8585 # Read current version from setup.py
8686 CURRENT_VERSION=$(grep -o '__version__ = "[^"]*"' setup.py | cut -d"" -f2)
8787 echo "Current version in files: $CURRENT_VERSION"
88-
88+
8989 # Split version into components
9090 IFS='.' read -r MAJOR MINOR PATCH_FULL <<< "$CURRENT_VERSION"
91-
91+
9292 # Handle beta suffix if it exists
9393 if [[ $PATCH_FULL == *b* ]]; then
9494 # Extract the numeric part before 'b'
@@ -101,15 +101,15 @@ jobs:
101101 PATCH_NUM=$PATCH_FULL
102102 BETA_NUM=1
103103 fi
104-
104+
105105 # Generate new beta version
106106 BETA_VERSION="$MAJOR.$MINOR.${PATCH_NUM}b$BETA_NUM"
107107 echo "Generated beta version: $BETA_VERSION"
108108 echo "version=$BETA_VERSION" >> $GITHUB_OUTPUT
109-
109+
110110 # Update version in setup.py
111111 sed -i "s/__version__ = \"[^\"]*\"/__version__ = \"$BETA_VERSION\"/g" setup.py
112-
112+
113113 # Update version in __about__.py if it exists
114114 if [ -f "datafog/__about__.py" ]; then
115115 sed -i "s/__version__ = \"[^\"]*\"/__version__ = \"$BETA_VERSION\"/g" datafog/__about__.py
@@ -123,18 +123,18 @@ jobs:
123123 run : |
124124 git config user.name github-actions
125125 git config user.email github-actions@github.com
126-
126+
127127 # Commit the version changes
128128 git add setup.py datafog/__about__.py
129129 git commit -m "Bump version to $BETA_VERSION [skip ci]"
130-
130+
131131 # Create and push tag
132132 git tag v$BETA_VERSION
133-
133+
134134 # Push both the commit and the tag
135135 git push origin HEAD:dev
136136 git push origin v$BETA_VERSION
137-
137+
138138 # Create GitHub release
139139 gh release create v$BETA_VERSION --prerelease --title "Beta Release v$BETA_VERSION" --notes "Automated beta release from dev branch"
140140 - name : Publish to PyPI as Beta
0 commit comments