From fe55224b23a3495b3c6dafa021a6d1f3df78551e Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 11 Aug 2020 22:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20=E4=BF=AE=E5=A4=8D=20pypi=20ci?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 949de34..7a6d0b3 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -2,25 +2,25 @@ name: Upload Python Package on: # 当master分支有push时,触发action - push: - branches: - - master + #push: + #branches: + #- master # 当一个pr被合并到master时,触发action - pull_request: - branches: - - master + #pull_request: + #branches: + #- master # 当发布时,触发action - #release: - # types: [created] + release: + types: [created] jobs: build: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8"] + python-version: ["3.6"] steps: # 此步骤使用 GitHub 的 https://github.com/actions/checkout - uses: actions/checkout@v2 @@ -31,6 +31,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + # 安装依赖 - name: Install dependencies run: |