Skip to content

Commit

Permalink
ci/pkg: fix if for releasing nightly pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Apr 3, 2024
1 parent 1ab7bd4 commit 6babe4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ 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__
password: ${{ secrets.test_pypi_password }}
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__
Expand Down

0 comments on commit 6babe4e

Please sign in to comment.