Skip to content

Commit

Permalink
Attempt to fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Nov 1, 2021
1 parent 622be86 commit f4c0273
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

# Make sure tags are fetched so we can get a version.
- run: |
sleep 10 # Sleep a while to make sure everything is up-to-date.
git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -25,7 +26,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip
pip install -U setuptools 'setuptools_scm[toml]' setuptools_scm_git_archive wheel twine
- name: Build and publish
env:
Expand All @@ -34,4 +35,7 @@ jobs:

run: |
python setup.py sdist
twine upload dist/*
twine upload dist/*
# Sleep and try again to make sure is uploaded.
sleep 1
twine upload dist/*

0 comments on commit f4c0273

Please sign in to comment.