Skip to content

Commit c89704f

Browse files
committed
move bumpmyversion after checkout
1 parent 84a6109 commit c89704f

File tree

6 files changed

+66
-66
lines changed

6 files changed

+66
-66
lines changed

.github/workflows/build_linux_arm64_wheels-gh.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,6 @@ jobs:
9696
echo "✓ Python $version is installed"
9797
done
9898
echo "All Python versions verified successfully!"
99-
- name: Update version for release
100-
if: startsWith(github.ref, 'refs/tags/v')
101-
run: |
102-
export PATH="$HOME/.pyenv/bin:$PATH"
103-
eval "$(pyenv init -)"
104-
pyenv shell 3.9
105-
106-
# Install bump-my-version
107-
python -m pip install bump-my-version
108-
TAG_NAME=${GITHUB_REF#refs/tags/v}
109-
bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
110-
echo "Version files updated to $TAG_NAME"
111-
pyenv shell --unset
11299
- name: Install dependencies for all Python versions
113100
run: |
114101
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -157,6 +144,19 @@ jobs:
157144
- name: Update submodules
158145
run: |
159146
git submodule update --init --recursive --jobs 4
147+
- name: Update version for release
148+
if: startsWith(github.ref, 'refs/tags/v')
149+
run: |
150+
export PATH="$HOME/.pyenv/bin:$PATH"
151+
eval "$(pyenv init -)"
152+
pyenv shell 3.9
153+
154+
# Install bump-my-version
155+
python -m pip install bump-my-version
156+
TAG_NAME=${GITHUB_REF#refs/tags/v}
157+
bump-my-version replace --new-version $TAG_NAME
158+
echo "Version files updated to $TAG_NAME"
159+
pyenv shell --unset
160160
- name: ccache
161161
uses: hendrikmuhs/ccache-action@v1.2
162162
with:

.github/workflows/build_linux_x86_wheels.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,6 @@ jobs:
9696
echo "✓ Python $version is installed"
9797
done
9898
echo "All Python versions verified successfully!"
99-
- name: Update version for release
100-
if: startsWith(github.ref, 'refs/tags/v')
101-
run: |
102-
export PATH="$HOME/.pyenv/bin:$PATH"
103-
eval "$(pyenv init -)"
104-
pyenv shell 3.9
105-
106-
# Install bump-my-version
107-
python -m pip install bump-my-version
108-
TAG_NAME=${GITHUB_REF#refs/tags/v}
109-
bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
110-
echo "Version files updated to $TAG_NAME"
111-
pyenv shell --unset
11299
- name: Install dependencies for all Python versions
113100
run: |
114101
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -157,6 +144,19 @@ jobs:
157144
- name: Update submodules
158145
run: |
159146
git submodule update --init --recursive --jobs 4
147+
- name: Update version for release
148+
if: startsWith(github.ref, 'refs/tags/v')
149+
run: |
150+
export PATH="$HOME/.pyenv/bin:$PATH"
151+
eval "$(pyenv init -)"
152+
pyenv shell 3.9
153+
154+
# Install bump-my-version
155+
python -m pip install bump-my-version
156+
TAG_NAME=${GITHUB_REF#refs/tags/v}
157+
bump-my-version replace --new-version $TAG_NAME
158+
echo "Version files updated to $TAG_NAME"
159+
pyenv shell --unset
160160
- name: ccache
161161
uses: hendrikmuhs/ccache-action@v1.2
162162
with:

.github/workflows/build_macos_arm64_wheels.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,6 @@ jobs:
8181
echo "✓ Python $version is installed"
8282
done
8383
echo "All Python versions verified successfully!"
84-
- name: Update version for release
85-
if: startsWith(github.ref, 'refs/tags/v')
86-
run: |
87-
export PATH="$HOME/.pyenv/bin:$PATH"
88-
eval "$(pyenv init -)"
89-
pyenv shell 3.9
90-
91-
# Install bump-my-version
92-
python -m pip install bump-my-version
93-
TAG_NAME=${GITHUB_REF#refs/tags/v}
94-
bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
95-
echo "Version files updated to $TAG_NAME"
96-
pyenv shell --unset
9784
- name: Install dependencies for all Python versions
9885
run: |
9986
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -141,6 +128,19 @@ jobs:
141128
- name: Update submodules
142129
run: |
143130
git submodule update --init --recursive --jobs 4
131+
- name: Update version for release
132+
if: startsWith(github.ref, 'refs/tags/v')
133+
run: |
134+
export PATH="$HOME/.pyenv/bin:$PATH"
135+
eval "$(pyenv init -)"
136+
pyenv shell 3.9
137+
138+
# Install bump-my-version
139+
python -m pip install bump-my-version
140+
TAG_NAME=${GITHUB_REF#refs/tags/v}
141+
bump-my-version replace --new-version $TAG_NAME
142+
echo "Version files updated to $TAG_NAME"
143+
pyenv shell --unset
144144
- name: Free up disk space (Before compilation)
145145
run: |
146146
echo "=== Disk usage before compilation cleanup ==="

.github/workflows/build_macos_x86_wheels.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ jobs:
7070
echo "✓ Python $version is installed"
7171
done
7272
echo "All Python versions verified successfully!"
73-
- name: Update version for release
74-
if: startsWith(github.ref, 'refs/tags/v')
75-
run: |
76-
export PATH="$HOME/.pyenv/bin:$PATH"
77-
eval "$(pyenv init -)"
78-
pyenv shell 3.9
79-
80-
# Install bump-my-version
81-
python -m pip install bump-my-version
82-
TAG_NAME=${GITHUB_REF#refs/tags/v}
83-
bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
84-
echo "Version files updated to $TAG_NAME"
85-
pyenv shell --unset
8673
- name: Install dependencies for all Python versions
8774
run: |
8875
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -150,6 +137,19 @@ jobs:
150137
- name: Update submodules
151138
run: |
152139
git submodule update --init --recursive --jobs 4
140+
- name: Update version for release
141+
if: startsWith(github.ref, 'refs/tags/v')
142+
run: |
143+
export PATH="$HOME/.pyenv/bin:$PATH"
144+
eval "$(pyenv init -)"
145+
pyenv shell 3.9
146+
147+
# Install bump-my-version
148+
python -m pip install bump-my-version
149+
TAG_NAME=${GITHUB_REF#refs/tags/v}
150+
bump-my-version replace --new-version $TAG_NAME
151+
echo "Version files updated to $TAG_NAME"
152+
pyenv shell --unset
153153
- name: ccache
154154
uses: hendrikmuhs/ccache-action@v1.2
155155
with:

.github/workflows/build_musllinux_arm64_wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
# Install bump-my-version
148148
python -m pip install bump-my-version
149149
TAG_NAME=${GITHUB_REF#refs/tags/v}
150-
bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
150+
bump-my-version replace --new-version $TAG_NAME
151151
echo "Version files updated to $TAG_NAME"
152152
pyenv shell --unset
153153
fi

.github/workflows/build_musllinux_x86_wheels.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ jobs:
109109
echo "Python $version is installed"
110110
done
111111
echo "All Python versions verified successfully!"
112-
- name: Update version for release
113-
if: startsWith(github.ref, 'refs/tags/v')
114-
run: |
115-
export PATH="$HOME/.pyenv/bin:$PATH"
116-
eval "$(pyenv init -)"
117-
pyenv shell 3.9
118-
119-
# Install bump-my-version
120-
python -m pip install bump-my-version
121-
TAG_NAME=${GITHUB_REF#refs/tags/v}
122-
bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
123-
echo "Version files updated to $TAG_NAME"
124-
pyenv shell --unset
125112
- name: Install dependencies for all Python versions
126113
run: |
127114
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -162,6 +149,19 @@ jobs:
162149
- name: Update submodules
163150
run: |
164151
git submodule update --init --recursive --jobs 4
152+
- name: Update version for release
153+
if: startsWith(github.ref, 'refs/tags/v')
154+
run: |
155+
export PATH="$HOME/.pyenv/bin:$PATH"
156+
eval "$(pyenv init -)"
157+
pyenv shell 3.9
158+
159+
# Install bump-my-version
160+
python -m pip install bump-my-version
161+
TAG_NAME=${GITHUB_REF#refs/tags/v}
162+
bump-my-version replace --new-version $TAG_NAME
163+
echo "Version files updated to $TAG_NAME"
164+
pyenv shell --unset
165165
- name: ccache
166166
uses: hendrikmuhs/ccache-action@v1.2
167167
with:

0 commit comments

Comments
 (0)