mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-18 13:54:01 +08:00
Use Travis CI to release
This commit is contained in:
parent
8bb84da1ad
commit
bed07054ee
@ -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
39
.travis.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user