Skip to content

Commit bd93f6f

Browse files
Merge pull request #346 from adamtheturtle/race-condition
Try to fix release race
2 parents 0584e00 + 438b5e9 commit bd93f6f

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -107,27 +107,6 @@ jobs:
107107
max_attempts: 50
108108
command: uv pip install --refresh doccmd==${{ steps.calver.outputs.release }}
109109

110-
# We have a race condition.
111-
# In particular, we push to PyPI and then immediately try to install
112-
# the pushed version.
113-
# Here, we give PyPI time to propagate the package.
114-
- name: Install package from PyPI (uv)
115-
uses: nick-fields/retry@v3
116-
with:
117-
timeout_seconds: 5
118-
max_attempts: 50
119-
command: uv pip install --refresh doccmd==${{ steps.calver.outputs.release }}
120-
121-
# Also get our package into the pip cache - it is later used to create
122-
# a PyInstaller binary.
123-
- name: Install package from PyPI (pip)
124-
uses: nick-fields/retry@v3
125-
with:
126-
timeout_seconds: 5
127-
max_attempts: 50
128-
command: uv pip install pip && uv run pip uninstall -y doccmd && uv run
129-
pip install doccmd==${{ steps.calver.outputs.release }}
130-
131110
- name: Set up Homebrew filename
132111
id: set-homebrew-filename
133112
run: |
@@ -188,10 +167,10 @@ jobs:
188167
python_ver: '3.13'
189168
pyinstaller_ver: ==6.12.0
190169
spec: bin/doccmd-wrapper.py
191-
requirements: '`echo doccmd==${{ steps.tag_version.outputs.new_tag }} >
192-
requirements.txt && echo requirements.txt`'
170+
requirements: '`echo . > requirements.txt && echo requirements.txt`'
193171
options: --onefile, --name "doccmd-linux"
194172
upload_exe_with_name: doccmd-linux
173+
clean_checkout: false
195174

196175
- name: Create a GitHub release
197176
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)