@@ -37,8 +37,9 @@ install:
37
37
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
38
38
39
39
script :
40
- # Set Current Version
40
+ # Set Current Version and Travis Tag
41
41
- TARGET_VERSION=`cat $TRAVIS_BUILD_DIR/box.json | jq '.version' -r`
42
+ - TRAVIS_TAG=${TARGET_VERSION}
42
43
- echo "Starting build for ${MODULE_ID} v${TARGET_VERSION}"
43
44
# Replace version so builder can issue it
44
45
@@ -57,7 +58,7 @@ script:
57
58
# Build Project
58
59
- box task run taskfile=build/Build target=run :version=${TARGET_VERSION} :projectName=${MODULE_ID} :buildID=${TRAVIS_BUILD_NUMBER} :branch=${TRAVIS_BRANCH}
59
60
# Cat results for debugging
60
- - cat build/results.json
61
+ # - cat build/results.json
61
62
62
63
after_failure :
63
64
- cd $TRAVIS_BUILD_DIR/test-harness
@@ -100,9 +101,26 @@ deploy:
100
101
upload-dir : coldbox-modules/$MODULE_ID/$TARGET_VERSION
101
102
acl : public_read
102
103
104
+ # Github Release only on Master
105
+ - provider : releases
106
+ api_key : ${GITHUB_TOKEN}
107
+ on :
108
+ branch :
109
+ - master
110
+ condition : " $ENGINE = lucee@5"
111
+ skip_cleanup : true
112
+ edge : true
113
+ file_glob : true
114
+ file : $TRAVIS_BUILD_DIR/.artifacts/$MODULE_ID/**/*
115
+ release_notes_file : changelog.md
116
+ name : v${TRAVIS_TAG}
117
+ tag_name : v${TRAVIS_TAG}
118
+ overwrite : true
119
+
120
+ # Once API Docs and Binaries are deployed to S3 Publish to ForgeBox
103
121
after_deploy :
104
122
# Move to build out artifact
105
123
- cd ${TRAVIS_BUILD_DIR}/.tmp/${MODULE_ID}
106
124
- cat box.json
107
- # Only publish once
125
+ # Only publish once using the lucee matrix
108
126
- if [ ${ENGINE} = 'lucee@5' ]; then box forgebox publish; fi
0 commit comments