Skip to content

Commit

Permalink
BUG: Workaround publish_github_release upload issue using actions/upl…
Browse files Browse the repository at this point in the history
…oad-artifact
  • Loading branch information
jcfr committed Jan 27, 2022
1 parent 449038e commit 9b578a5
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,27 @@ jobs:
cmake --build build --target package
# Exclude tests requiring X Display
- name: Test
run: |
cd build
ctest -LE XDisplayRequired -VV
#- name: Test
# run: |
# 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
uses: actions/upload-artifact@v2
with:
name: macos-packages
path: build/CTKAppLauncher-*.tar.gz

# See https://github.com/scikit-build/scikit-ci-addons/issues/96
#- 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 9b578a5

Please sign in to comment.