summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJames R. Barlow <james@purplerock.ca>2022-07-26 03:23:22 -0700
committerJames R. Barlow <james@purplerock.ca>2022-07-26 03:23:22 -0700
commit6d8e6a54213c88fce8e5b44111cb7649ea1ceaaa (patch)
treea70980520ffd3432b132fe7a230578324794feb6 /.github
parentf0c00f7738814ccaa9884268462ddfc026ee3ff7 (diff)
build: trigger rtd well after uploading rtd-wheels since there seems to be a timing issue
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml36
1 files changed, 18 insertions, 18 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 40dd5e2..efffa4a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -229,10 +229,27 @@ jobs:
name: wheels
path: dist/*.tar.gz
+ upload_pypi:
+ needs: [wheels_linux, wheels_linux_arm, wheels_macos, wheels_windows, sdist]
+ runs-on: ubuntu-latest
+ # upload to PyPI on every tag starting with 'v'
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: wheels
+ path: dist
+
+ - uses: pypa/gh-action-pypi-publish@master
+ with:
+ user: __token__
+ password: ${{ secrets.TOKEN_PYPI }}
+ # repository_url: https://test.pypi.org/legacy/
+
trigger_rtd:
name: Trigger ReadTheDocs
runs-on: ubuntu-latest
- needs: [wheels_linux]
+ needs: [upload_pypi]
if: startsWith(github.ref, 'refs/heads/') && !startsWith(github.ref, 'refs/heads/actions')
steps:
- name: Check for secrets
@@ -257,20 +274,3 @@ jobs:
-d "token=${{ secrets.RTDS_WEBHOOK_TOKEN }}" \
"${{ secrets.RTDS_WEBHOOK_URL }}"
if: ${{ steps.setvar.outputs.have_secrets == 'true' }}
-
- upload_pypi:
- needs: [wheels_linux, wheels_linux_arm, wheels_macos, wheels_windows, sdist]
- runs-on: ubuntu-latest
- # upload to PyPI on every tag starting with 'v'
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
- steps:
- - uses: actions/download-artifact@v3
- with:
- name: wheels
- path: dist
-
- - uses: pypa/gh-action-pypi-publish@master
- with:
- user: __token__
- password: ${{ secrets.TOKEN_PYPI }}
- # repository_url: https://test.pypi.org/legacy/