Skip to content

Commit db0f84d

Browse files
committed
codemagic.yaml: add GitHub release logic
requires monero-project#277
1 parent de7855d commit db0f84d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

codemagic.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
environment:
2+
vars:
3+
GH_TOKEN
4+
15
workflows:
26
build:
37
name: Build workflow
8+
triggering:
9+
events:
10+
- tag
11+
branch_patterns:
12+
- pattern: '*'
13+
include: true
14+
source: true
415
scripts:
516
- name: install dependencies
617
script: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt@5
@@ -40,3 +51,13 @@ workflows:
4051
script: |
4152
export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)"
4253
curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2
54+
- name: Publish to GitHub
55+
script: |
56+
#!/usr/bin/env zsh
57+
# Publish only for tag builds
58+
if [ -z ${CM_TAG} ]; then
59+
echo "Not a tag build, will not publish GitHub release"
60+
exit 0
61+
fi
62+
export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)"
63+
gh release create "${CM_TAG}" build/release/$ARTIFACT_NAME.tar.bz2

0 commit comments

Comments
 (0)