Added auto deploy

canary
WolverinDEV 2019-02-19 17:13:26 +01:00
parent 9da2034535
commit 3bdc28b077
1 changed files with 7 additions and 3 deletions

View File

@ -20,9 +20,13 @@ jobs:
- "ls -lah /tmp/build/"
- "ls -lah /tmp/build/logs/"
- "ls -lah /tmp/build/packages/"
#TODO: Upload!
- stage: "deploy"
name: Deploy the builded files as official release
script:
- echo "Implement me!"
if: branch = master
- "wget https://github.com/buildkite/github-release/releases/download/v1.0/github-release-linux-amd64 -O /tmp/git-release; chmod +x /tmp/git-release;"
- "echo \"Release commit: $COMMIT\"; export GITHUB_RELEASE_COMMIT=\"$COMMIT\""
- "export GITHUB_RELEASE_TAG=\"This is a auto build release from travis\""
- "export GITHUB_RELEASE_REPOSITORY=\"$REPO_FULL_NAME\""
- "export GITHUB_RELEASE_ACCESS_TOKEN=\"$GIT_AUTHTOKEN\""
- "/tmp/git-release \"Travis autobuild $COMMIT\" /tmp/build/packages/* /tmp/build/logs/*"
if: branch = master && is_fork = false