update travis ci (#274)

* update travis ci

* branches
This commit is contained in:
New Future
2021-07-21 13:44:48 +08:00
committed by GitHub
parent 5e420fbe4a
commit 473034a014
+10 -6
View File
@@ -5,8 +5,12 @@ python:
dist: xenial
# os:
# - linux
branches:
only:
- master
os:
- linux
# - osx
before_install:
@@ -29,8 +33,8 @@ git:
deploy:
- provider: releases
api_key: "${GH_TOKEN}"
skip_cleanup: true
token: "${GH_TOKEN}"
cleanup: false
file:
- "dist/ddns"
on:
@@ -38,9 +42,9 @@ deploy:
branch: master
python: '3.7'
- provider: pypi
user: newfuture-bot
username: newfuture-bot
password: "${PYPI_PWD}"
skip_cleanup: true
cleanup: false
distributions: "sdist bdist_wheel" # Your distributions here
on:
tags: true