@@ -85,10 +85,10 @@ jobs:
85
85
# Read current version from setup.py
86
86
CURRENT_VERSION=$(grep -o '__version__ = "[^"]*"' setup.py | cut -d"" -f2)
87
87
echo "Current version in files: $CURRENT_VERSION"
88
-
88
+
89
89
# Split version into components
90
90
IFS='.' read -r MAJOR MINOR PATCH_FULL <<< "$CURRENT_VERSION"
91
-
91
+
92
92
# Handle beta suffix if it exists
93
93
if [[ $PATCH_FULL == *b* ]]; then
94
94
# Extract the numeric part before 'b'
@@ -101,15 +101,15 @@ jobs:
101
101
PATCH_NUM=$PATCH_FULL
102
102
BETA_NUM=1
103
103
fi
104
-
104
+
105
105
# Generate new beta version
106
106
BETA_VERSION="$MAJOR.$MINOR.${PATCH_NUM}b$BETA_NUM"
107
107
echo "Generated beta version: $BETA_VERSION"
108
108
echo "version=$BETA_VERSION" >> $GITHUB_OUTPUT
109
-
109
+
110
110
# Update version in setup.py
111
111
sed -i "s/__version__ = \"[^\"]*\"/__version__ = \"$BETA_VERSION\"/g" setup.py
112
-
112
+
113
113
# Update version in __about__.py if it exists
114
114
if [ -f "datafog/__about__.py" ]; then
115
115
sed -i "s/__version__ = \"[^\"]*\"/__version__ = \"$BETA_VERSION\"/g" datafog/__about__.py
@@ -123,18 +123,18 @@ jobs:
123
123
run : |
124
124
git config user.name github-actions
125
125
git config user.email github-actions@github.com
126
-
126
+
127
127
# Commit the version changes
128
128
git add setup.py datafog/__about__.py
129
129
git commit -m "Bump version to $BETA_VERSION [skip ci]"
130
-
130
+
131
131
# Create and push tag
132
132
git tag v$BETA_VERSION
133
-
133
+
134
134
# Push both the commit and the tag
135
135
git push origin HEAD:dev
136
136
git push origin v$BETA_VERSION
137
-
137
+
138
138
# Create GitHub release
139
139
gh release create v$BETA_VERSION --prerelease --title "Beta Release v$BETA_VERSION" --notes "Automated beta release from dev branch"
140
140
- name : Publish to PyPI as Beta
0 commit comments