Skip to content

Commit

Permalink
travis ci set.
Browse files Browse the repository at this point in the history
  • Loading branch information
sffxzzp committed Jun 16, 2019
1 parent 0d72fb0 commit 00ae092
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ python:

env:
global:
- TRAVIS_TAG="$(date '+%y/%m/%d-%H:%M %z')"
- TRAVIS_TAG="$(date -u '+%Z-%y%m%d-%H%M')"

branches:
only:
Expand All @@ -14,15 +14,17 @@ script:
- python check.py

before_deploy:
- zip -r SChinese.zip "." -x "./.git/" "./check.py" "./.travis.yml" "./output.log"
- zip -r -9 SChinese.zip "." -x "./.git/" "./check.py" "./.travis.yml" "./output.log"
- export RBody=$(cat ./output.log)
- git config --local user.name "$user_name"
- git config --local user.email "$user_email"
- git tag "$TRAVIS_TAG"

deploy:
provider: releases
api_key: $gh_token
prerelease: true
draft: false
body: $RBody
file: "SChinese.zip"
skip_cleanup: true
Expand Down

0 comments on commit 00ae092

Please sign in to comment.