File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ environment :
2
+ vars :
3
+ GITHUB_TOKEN
4
+
1
5
workflows :
2
6
build :
3
7
name : Build workflow
8
+ triggering :
9
+ events :
10
+ - tag
11
+ branch_patterns :
12
+ - pattern : ' *'
13
+ include : true
14
+ source : true
4
15
scripts :
5
16
- name : install dependencies
6
17
script : HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf
@@ -24,3 +35,13 @@ workflows:
24
35
script : |
25
36
export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
26
37
curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2
38
+ - name : Publish to GitHub
39
+ script : |
40
+ #!/usr/bin/env zsh
41
+ # Publish only for tag builds
42
+ if [ -z ${CM_TAG} ]; then
43
+ echo "Not a tag build, will not publish GitHub release"
44
+ exit 0
45
+ fi
46
+ export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
47
+ gh release create "${CM_TAG}" build/release/$ARTIFACT_NAME.tar.bz2
You can’t perform that action at this time.
0 commit comments