Skip to content

Commit

Permalink
codemagic.yaml: add GitHub release logic
Browse files Browse the repository at this point in the history
  • Loading branch information
stoffu committed Jan 17, 2023
1 parent e134eb9 commit 1cb4b41
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions codemagic.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
workflows:
build:
name: Build workflow
triggering:
events:
- tag
branch_patterns:
- pattern: '*'
include: true
source: true
environment:
groups:
- github
scripts:
- name: install dependencies
script: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf
Expand All @@ -24,3 +34,13 @@ workflows:
script: |
export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2
- name: Publish to GitHub
script: |
#!/usr/bin/env zsh
# Publish only for tag builds
if [ -z ${CM_TAG} ]; then
echo "Not a tag build, will not publish GitHub release"
exit 0
fi
export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
gh release create "${CM_TAG}" build/release/$ARTIFACT_NAME.tar.bz2

0 comments on commit 1cb4b41

Please sign in to comment.