Skip to content

Commit 02503ff

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

codemagic.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
workflows:
22
build:
33
name: Build workflow
4+
triggering:
5+
events:
6+
- tag
7+
branch_patterns:
8+
- pattern: '*'
9+
include: true
10+
source: true
11+
environment:
12+
groups:
13+
- github
414
scripts:
515
- name: install dependencies
616
script: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt@5
@@ -40,3 +50,13 @@ workflows:
4050
script: |
4151
export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)"
4252
curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2
53+
- name: Publish to GitHub
54+
script: |
55+
#!/usr/bin/env zsh
56+
# Publish only for tag builds
57+
if [ -z ${CM_TAG} ]; then
58+
echo "Not a tag build, will not publish GitHub release"
59+
exit 0
60+
fi
61+
export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)"
62+
gh release upload "${CM_TAG}" build/release/$ARTIFACT_NAME.tar.bz2

0 commit comments

Comments
 (0)