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 28e92b1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions codemagic.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
environment:
vars:
GITHUB_TOKEN

workflows:
build:
name: Build workflow
triggering:
events:
- tag
branch_patterns:
- pattern: '*'
include: true
source: true
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 +35,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 28e92b1

Please sign in to comment.