Skip to content

Commit 3a80b53

Browse files
Merge pull request #797 from VWS-Python/fix-release
Try to avoid race condition in release process
2 parents ccb2bba + c2912b9 commit 3a80b53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
python -m build --sdist --wheel --outdir dist/ .
9696
9797
- name: Publish distribution 📦 to PyPI
98-
uses: pypa/gh-action-pypi-publish@master
98+
uses: pypa/gh-action-pypi-publish@release/v1
9999
with:
100100
password: ${{ secrets.PYPI_API_TOKEN }}
101101
verbose: true
@@ -106,6 +106,11 @@ jobs:
106106
NEXT_VERSION: ${{ steps.calver.outputs.release }}
107107
FILENAME: vws-cli.rb
108108
run: |
109+
# We have a race condition.
110+
# In particular, we push to PyPI and then immediately try to install
111+
# the pushed version.
112+
# Here, we give PyPI 30 seconds to propagate the package.
113+
sleep 30
109114
pip install vws-cli==${{ env.NEXT_VERSION }}
110115
poet --formula vws-cli > ${{ env.FILENAME }}
111116
echo '::set-output name=HOMEBREW_RECIPE_FILE::${{ env.FILENAME }}'

0 commit comments

Comments
 (0)