Use Travis CI to release

This commit is contained in:
Pig Fang 2019-03-15 22:18:20 +08:00
parent 8bb84da1ad
commit bed07054ee
2 changed files with 39 additions and 14 deletions

View File

@ -75,14 +75,6 @@ jobs:
- run: touch storage/testing.sqlite
- run: ./vendor/bin/phpunit
release:
working_directory: ~/workspace
docker:
- image: blessingskin/ci:release-tool
steps:
- run: git clone https://github.com/bs-community/release-tool.git .
- run: sh ./release.sh
workflows:
version: 2
install_and_test:
@ -98,9 +90,3 @@ workflows:
- php7.3:
requires:
- composer
- release:
requires:
- php7.1
- php7.2
- php7.3
- frontend

39
.travis.yml Normal file
View File

@ -0,0 +1,39 @@
language: php
nodejs: 10
php: 7.3
install:
- composer install --no-dev
- rm -rf vendor/bin
- yarn
script:
- yarn build
- cp .env.example .env
- zip -9 -r blessing-skin-server-$TRAVIS_TAG.zip \
app \
bootstrap \
config \
database \
plugins \
public \
resources/lang \
resources/views \
routes \
storage \
vendor \
.env \
artisan \
LICENSE \
README.md \
README_EN.md
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: blessing-skin-server-$TRAVIS_TAG.zip
draft: true
skip_cleanup: true
on:
tags: true