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 de7855d commit 1eb7ab4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions codemagic.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
environment:
vars:
GH_TOKEN

workflows:
build:
name: Build workflow
Expand Down Expand Up @@ -40,3 +44,13 @@ workflows:
script: |
export ARTIFACT_NAME="aeon-gui-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-gui-mac-armv8-$(git describe --tags)"
gh release create "${CM_TAG}" build/release/$ARTIFACT_NAME.tar.bz2

0 comments on commit 1eb7ab4

Please sign in to comment.