Skip to content

Commit 449038e

Browse files
committed
ENH: Add support for automatically uploading macOS package as release asset
1 parent a94ee91 commit 449038e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- master
8+
tags:
9+
- 'v*'
810

911
jobs:
1012
tests:
@@ -24,7 +26,7 @@ jobs:
2426
- name: Setup python
2527
uses: actions/[email protected]
2628
with:
27-
python-version: '3.x'
29+
python-version: '3.7'
2830

2931
- name: Install scikit-ci-addons
3032
run: pip install -U scikit-ci-addons
@@ -69,3 +71,15 @@ jobs:
6971
cd build
7072
ctest -LE XDisplayRequired -VV
7173
74+
- name: Publish packages
75+
run: |
76+
cd src
77+
ci_addons publish_github_release commontk/applauncher \
78+
--exit-success-if-missing-token \
79+
--prerelease-packages ../build/CTKAppLauncher-*.tar.gz \
80+
--prerelease-packages-clear-pattern "*macosx*" \
81+
--prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" \
82+
--release-packages build/CTKAppLauncher-*.tar.gz
83+
env:
84+
GITHUB_TOKEN: secrets.COMMONTKBOT_GITHUB_TOKEN
85+

0 commit comments

Comments
 (0)