Skip to content

Commit 3a94201

Browse files
committed
Merge pull request #82 from Pezmc/chores/travis-enhance
Include build information in build zip
2 parents aafd415 + 6e02c9f commit 3a94201

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,4 @@ $RECYCLE.BIN/
159159
src/RemoteTech2/*.dll
160160
*.zip
161161
GameData/RemoteTech2/Plugins/RemoteTech2.dll
162+
GameData/build.txt

CI/github.build.deploy.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@ then
3737
exit 0;
3838
fi
3939

40+
echo "Build ${TRAVIS_BUILD_NUMBER} from branch ${TRAVIS_BRANCH} in ${TRAVIS_REPO_SLUG}" > GameData/build.txt
41+
echo "Built from commit ${TRAVIS_COMMIT} with tag ${BUILDTAG}" >> GameData/build.txt
4042
echo "Creating ${FILENAME}"
4143
zip -r "${FILENAME}" GameData/
4244

4345
echo "Attempting to create tag ${VERSION} on ${TRAVIS_REPO_SLUG}"
44-
API_JSON=$(printf '{"tag_name": "%s","target_commitish": "%s","name": "%s","body": "Automated pre-release of version %s","draft": false,"prerelease": true}' $VERSION $TRAVIS_COMMIT $VERSION $VERSION)
46+
API_JSON=$(printf '{"tag_name": "%s","target_commitish": "%s","name": "%s","body": "Automated pre-release of branch %s build %s","draft": false,"prerelease": true}' \
47+
$VERSION $TRAVIS_COMMIT $VERSION $TRAVIS_BRANCH $TRAVIS_BUILD_NUMBER)
4548
ADDRESS=$(printf 'https://api.github.com/repos/%s/releases?access_token=%s' $TRAVIS_REPO_SLUG $GITHUB_TOKEN)
4649

4750
REPLY=$(curl --data "$API_JSON" "$ADDRESS");

0 commit comments

Comments
 (0)