From 8e024a87447abaf99cbbedea6b51dd6b02e95e4c Mon Sep 17 00:00:00 2001 From: Jiting Date: Tue, 29 Jan 2019 12:03:10 +0800 Subject: [PATCH] =?UTF-8?q?[skip=20ci]=20=E6=9B=B4=E6=94=B9=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 9 ++++++++- maker.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4bf7acb..3e06166 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,19 @@ script: - python3 maker.py - rm dist/* +before_deploy: + - git config --local user.name "jitingcn" + - git config --local user.email "jiting@jtcat.com" + - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)} + - git tag $TRAVIS_TAG + deploy: provider: releases prerelease: true + # on.tags: true api_key: secure: Uhkopjz/RWKThMknhkOmuWU/8WZgS+0MkNKwV7ydQ0r4xat8m6DbCxmlyHM1Y5sLaC3wKwyW2CTnKue0wscDokNan+KdJLoh90xfJytBcPx33ElYEw7Gc+ChfJQy/KNxlrps4XOH2+wBTemlK2ws1btL70pHrBdgLfQtGiZKC69mz+oegQjkky7wC9JT4ne81rDtNwwV7TT2htP/ewTZejIXct7egydk0PpmXN8j9uondfblkk3t4TbsojWa7JybkE/nD/vxUIzd20gi+it4aYpkepga1cnbzm2/ZMWPeCSquu28X4vnhXW17RmHyT7L5zueL+bAz5AEwK4FfCMZDqETbXhIFz6pgsiVneZMpCr6gqNU112ihKTtVgDQrmk6xw+ST24yfqRP4qUBoF0rYz50YT1VpcucqEAuNK6nkha54P5H9xzZkQEjRLV0Gro0B5euwmPFX0KUbxaq58gUVlq0DJgWblYjILzd9/BgS0KKLmyNL1NSkwRHdn+AJ3s/1h206nzSZ2h/RnEXGzT/f2jsVwxi1QQOVFkQwyVS4IvZl2wgb0XZsK7pAnfjznAsR8NYYzcFb4S4KmYxoBGR6jr2zfw9o0LfraOEDM+A05IjYlMpZYE9i7VhQ+4rbX11cjW6gPAMT86Gqw84rsxPNe3FGyBriN1LRQybljzJe1Y= - file: "Chinese_Translation_(zh-CN).ts3_translation" + file: "Chinese_Translation_zh-CN.ts3_translation" skip_cleanup: true on: repo: jitingcn/TS3-Translation_zh-CN diff --git a/maker.py b/maker.py index 389147b..21b1809 100644 --- a/maker.py +++ b/maker.py @@ -53,7 +53,7 @@ def make_package(release_list): 'Description = Source Code: https://github.com/jitingcn/TS3-Translation_zh-CN'] f.write("\n".join(package_info)) - file_name = 'Chinese_Translation_(zh-CN).ts3_translation' + file_name = 'Chinese_Translation_zh-CN.ts3_translation' print("Zip package ...") with zipfile.ZipFile(file_name, 'w', zipfile.ZIP_DEFLATED) as release: release.write(ini, "package.ini")