|
9 | 9 | name: Unit tests
|
10 | 10 | strategy:
|
11 | 11 | matrix:
|
12 |
| - python-version: [2.7, 3.6, 3.7] |
| 12 | + python-version: [2.7, 3.7] |
13 | 13 | os: [macos-latest, ubuntu-latest, windows-latest]
|
14 | 14 |
|
15 | 15 | runs-on: ${{ matrix.os }}
|
@@ -56,12 +56,29 @@ jobs:
|
56 | 56 | run:
|
57 | 57 | npm install @semantic-release/exec
|
58 | 58 | - name: run semantic release
|
59 |
| - run: |
| 59 | + id: new_release |
| 60 | + run: | |
| 61 | + nextRelease="`npx semantic-release --dryRun | grep -oP 'Published release \K.*? ' || true`" |
60 | 62 | npx semantic-release
|
| 63 | + echo "::set-output name=tag::$nextRelease" |
61 | 64 | env:
|
62 | 65 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
63 | 66 | PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
64 | 67 | PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
| 68 | + - name: sleep for 10 minutes for PyPI update |
| 69 | + if: contains(steps.new_release.outputs.tag, '.') |
| 70 | + run: sleep 600s |
| 71 | + shell: bash |
| 72 | + - name: Update honeybee-radiance |
| 73 | + if: contains(steps.new_release.outputs.tag, '.') |
| 74 | + env: |
| 75 | + DISPATCH_REPO: ladybug-tools/honeybee-radiance |
| 76 | + DEPS_TOKEN: ${{ secrets.DEPS_UPDATING }} |
| 77 | + run: | |
| 78 | + curl -X POST https://api.github.com/repos/$DISPATCH_REPO/dispatches \ |
| 79 | + -H "Accept: application/vnd.github.everest-preview+json" \ |
| 80 | + -d '{"event_type": "honeybee_radiance_folder_release", "client_payload": {"version": "${{ steps.new_release.outputs.tag }}"}}' \ |
| 81 | + -u ladybugbot:$DEPS_TOKEN |
65 | 82 |
|
66 | 83 | docs:
|
67 | 84 | name: Generate docs
|
|
0 commit comments