This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (34 loc) · 2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dist: xenial # Ubuntu 16.04
language: clojure # we're cloning wowman and using leiningen
jdk: openjdk8 # problems with jdk11 https://github.com/clj-commons/ordered/pull/37
install: true # don't try to 'install' wowman-data, you'll fail
jobs:
include:
-
stage: update-release
script: /bin/bash travis-update.sh # generate the updates
before_deploy:
- set -e
# configure repo
- git config --local user.name "torkus-jr"
- git config --local user.email "[email protected]"
# tag the current revision, overwriting any previous tag
- export TRAVIS_TAG=daily
- git tag -fa "$TRAVIS_TAG" -m "release updated $(date -I)"
# delete the remote instance of this tag
- git push "https://[email protected]/ogri-la/wowman-data" --delete "$TRAVIS_TAG" || echo "tag doesn't exist (yet)"
# commit the changes made to the files by travis-update.sh
# this will update catalog.json as well as curseforge.json and wowinterface.json
# - catalog.json is deprecated, replaced with the daily release
# - will be supported as part of the wowman-data repository until 1.0.0
- git commit -a --file commit-message.txt
# push the changes to the files and then push the tags. can't be done in one operation
- git push "https://[email protected]/ogri-la/wowman-data" HEAD:master
- git push "https://[email protected]/ogri-la/wowman-data" HEAD:master --tags
# create a release in github, uploading the 'release' file
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: "catalog.json"
skip_cleanup: false # changed from true.
overwrite: true # https://docs.travis-ci.com/user/deployment/releases/#overwrite-existing-files-on-the-release