From 6babe4ebfcfade800e75c44781febd20178ff83b Mon Sep 17 00:00:00 2001 From: Jirka Date: Wed, 3 Apr 2024 21:47:29 +0200 Subject: [PATCH] ci/pkg: fix if for releasing nightly pkg --- .github/workflows/release-nightly.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 08a0136694..441524257e 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -25,14 +25,14 @@ jobs: - name: Install dependencies run: python -m pip install --user --upgrade setuptools wheel - - name: Build + - name: Build package env: CONVERT_VERSION2NIGHTLY: "1" run: python setup.py sdist bdist_wheel # We do this, since failures on test.pypi aren't that bad - name: Publish to Test PyPI - if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' uses: pypa/gh-action-pypi-publish@v1.8.14 with: user: __token__ @@ -40,7 +40,7 @@ jobs: repository_url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI - if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' uses: pypa/gh-action-pypi-publish@v1.8.14 with: user: __token__