From ba514cff0049ca06dadb087c7c3ef32575306188 Mon Sep 17 00:00:00 2001 From: long2ice Date: Tue, 19 May 2020 19:59:26 +0800 Subject: [PATCH] update pypi.yml --- .github/workflows/pypi.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 366905d..24102b5 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,9 +1,8 @@ name: pypi on: - push: - paths: - - 'fastapi_admin/__init__.py' - - '.github/workflows/pypi.yml' + release: + types: + - created jobs: build: runs-on: ubuntu-latest @@ -12,11 +11,9 @@ jobs: - uses: actions/setup-python@v1 with: python-version: '3.x' - - name: Build dists run: | python3 setup.py sdist - - name: Pypi Publish uses: pypa/gh-action-pypi-publish@master with: