28 lines
859 B
YAML
28 lines
859 B
YAML
language: php
|
|
php: 7.3
|
|
|
|
install: true
|
|
script: true
|
|
|
|
before_deploy:
|
|
- nvm install 10
|
|
- node -v
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
|
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
|
- RELEASE_TAG=$TRAVIS_TAG ./scripts/release.sh
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_TOKEN
|
|
file: blessing-skin-server-$TRAVIS_TAG.zip
|
|
name: $TRAVIS_TAG
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
|
|
after_deploy:
|
|
- curl -s -o github-release.tar.bz2 -L https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
|
|
- tar -xf github-release.tar.bz2
|
|
- export CHANGELOG=$(cat resources/misc/changelogs/en/$TRAVIS_TAG.md && echo "\n---\n" && cat resources/misc/changelogs/zh_CN/$TRAVIS_TAG.md)
|
|
- ./bin/linux/amd64/github-release -v edit -u bs-community -r blessing-skin-server -t $TRAVIS_TAG -d "$CHANGELOG"
|