File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 44 pull_request :
55 branches :
66 - master
7- release :
8- types : [published]
97 push :
108 paths :
119 - ' src/**'
1210 - ' tests/**'
11+ schedule :
12+ # every weekday at 9:00 AM PST
13+ - cron : ' 0 17 * * 1-5'
1314
1415jobs :
1516 lint :
@@ -61,14 +62,14 @@ jobs:
6162 COVERAGE_FILE : .coverage.integ
6263 IGNORE_COVERAGE : ' -'
6364 - name : Upload Code Coverage
64- if : github.event_name == 'release '
65+ if : github.event_name == 'schedule '
6566 run : tox -e upload-coverage
6667 env :
6768 CODECOV_UPLOAD_TOKEN : ${{ secrets.CODECOV_UPLOAD_TOKEN }}
6869
6970 release :
7071 needs : [test, lint]
71- if : github.event_name == 'release ' && github.repository == 'aws/sagemaker-experiments'
72+ if : github.event_name == 'schedule ' && github.repository == 'aws/sagemaker-experiments'
7273 runs-on : ubuntu-latest
7374 steps :
7475 - uses : actions/checkout@v1
7879 python-version : ' 3.x'
7980 - name : Install Dependencies
8081 run : pip install setuptools wheel twine tox
82+ - name : Create Release
83+ run : tox -e release
84+ env :
85+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8186 - name : Create Distribution
8287 run : python setup.py bdist_wheel
8388 - name : Sign Release
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def release():
4848
4949 if not recent_changes_to_src (last_version ):
5050 print ("Nothing to release." )
51+ exit (1 )
5152 return
5253
5354 changes = get_changes (last_version )
You can’t perform that action at this time.
0 commit comments