Skip to content

Commit 5b56e13

Browse files
author
Chris Mackey
committed
ci(deps): Refactor the dependency-updating system
1 parent 43e96f4 commit 5b56e13

File tree

3 files changed

+20
-37
lines changed

3 files changed

+20
-37
lines changed

.dependabot/config.yml

-34
This file was deleted.

.github/workflows/ci.yaml

+19-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Unit tests
1010
strategy:
1111
matrix:
12-
python-version: [2.7, 3.6, 3.7]
12+
python-version: [2.7, 3.7]
1313
os: [macos-latest, ubuntu-latest, windows-latest]
1414

1515
runs-on: ${{ matrix.os }}
@@ -56,12 +56,29 @@ jobs:
5656
run:
5757
npm install @semantic-release/exec
5858
- name: run semantic release
59-
run:
59+
id: new_release
60+
run: |
61+
nextRelease="`npx semantic-release --dryRun | grep -oP 'Published release \K.*? ' || true`"
6062
npx semantic-release
63+
echo "::set-output name=tag::$nextRelease"
6164
env:
6265
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6366
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
6467
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
6582
6683
docs:
6784
name: Generate docs

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
[![Build Status](https://travis-ci.com/ladybug-tools/honeybee-radiance-folder.svg?branch=master)](https://travis-ci.com/ladybug-tools/honeybee-radiance-folder)
33
[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/honeybee-radiance-folder/badge.svg?branch=master)](https://coveralls.io/github/ladybug-tools/honeybee-radiance-folder)
44

5+
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)
56
[![Python 2.7](https://img.shields.io/badge/python-2.7-green.svg)](https://www.python.org/downloads/release/python-270/)
6-
[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
77
[![IronPython](https://img.shields.io/badge/ironpython-2.7-red.svg)](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/)
88

99
Honeybee Radiance Folder is a Python library to read, write and validate the

0 commit comments

Comments
 (0)