File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}'
You can’t perform that action at this time.
0 commit comments