Skip to content

Commit

Permalink
ENH: Add support for automatically uploading macOS package as release…
Browse files Browse the repository at this point in the history
… asset
  • Loading branch information
jcfr committed Jan 27, 2022
1 parent a94ee91 commit 449038e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- master
tags:
- 'v*'

jobs:
tests:
Expand All @@ -24,7 +26,7 @@ jobs:
- name: Setup python
uses: actions/[email protected]
with:
python-version: '3.x'
python-version: '3.7'

- name: Install scikit-ci-addons
run: pip install -U scikit-ci-addons
Expand Down Expand Up @@ -69,3 +71,15 @@ jobs:
cd build
ctest -LE XDisplayRequired -VV
- name: Publish packages
run: |
cd src
ci_addons publish_github_release commontk/applauncher \
--exit-success-if-missing-token \
--prerelease-packages ../build/CTKAppLauncher-*.tar.gz \
--prerelease-packages-clear-pattern "*macosx*" \
--prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" \
--release-packages build/CTKAppLauncher-*.tar.gz
env:
GITHUB_TOKEN: secrets.COMMONTKBOT_GITHUB_TOKEN

0 comments on commit 449038e

Please sign in to comment.