From bed07054ee456ebe632777fccccaa8e91e57c9ef Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 15 Mar 2019 22:18:20 +0800 Subject: [PATCH] Use Travis CI to release --- .circleci/config.yml | 14 -------------- .travis.yml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 1e6817d4..d3edc561 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..e4f06741 --- /dev/null +++ b/.travis.yml @@ -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