Skip to content

Commit

Permalink
Delay PyPI releasing (#4730)
Browse files Browse the repository at this point in the history
* Delay PyPI releasing

* Delay PyPI releasing

Co-authored-by: chaton <[email protected]>
  • Loading branch information
Borda and tchaton authored Nov 18, 2020
1 parent 5ea3833 commit 5fd1afb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ jobs:
- name: Install dependencies
run: >-
python -m pip install --user --upgrade setuptools wheel
- name: Build
- name: Build packages
run: |
python .github/prepare-nightly_version.py
python setup.py sdist bdist_wheel
ls -lh dist/
# We do this, since failures on test.pypi aren't that bad
- name: Delay releasing
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: juliangruber/sleep-action@v1
with:
time: 5m

# We do this, since failures on test.pypi aren't that bad
- name: Publish to Test PyPI
uses: pypa/[email protected]
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
- name: Install dependencies
run: >-
python -m pip install --user --upgrade setuptools wheel
- name: Build
- name: Build packages
run: |
python setup.py sdist bdist_wheel
ls -lh dist/
- name: Delay releasing
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: juliangruber/sleep-action@v1
with:
time: 10m

# We do this, since failures on test.pypi aren't that bad
- name: Publish to Test PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
Expand Down

0 comments on commit 5fd1afb

Please sign in to comment.