From 6545bd98390365755438c836126dba8c000040f6 Mon Sep 17 00:00:00 2001 From: Andrii Lytovchenko Date: Tue, 7 Dec 2021 23:28:27 +0100 Subject: [PATCH] fix: fix release drafter --- .github/workflows/deployment.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 543092a..1927e79 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -1,15 +1,14 @@ name: Deployment on: - push: - tags: + release: + types: [published] pull_request: jobs: deploy-pypi: name: PyPI deployment runs-on: "ubuntu-latest" - if: github.event_name != 'push' || github.repository == 'Eiscat3D/EiscatDIRAC' steps: - uses: actions/checkout@v2 with: @@ -24,7 +23,7 @@ jobs: - name: Build distributions run: python -m build - name: Publish package on PyPI - if: github.event_name == 'push' + if: github.event_name == 'published' uses: pypa/gh-action-pypi-publish@master with: user: __token__