From bedca73ca6b53e65b18fc4c009f080fb9be88123 Mon Sep 17 00:00:00 2001 From: Dennis Carlson Date: Mon, 13 May 2024 14:27:41 -0500 Subject: [PATCH] Fix pipeline condition --- .github/workflows/python-package.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3a4972a..aff8c30 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -47,7 +47,7 @@ jobs: VERSION="${RELEASE_NAME:1}" sed -i '0,/version = "1.0.0"/s//version = "${VERSION}"/' Cargo.toml cat Cargo.toml - if: github.event_name == 'release' && github.event.action == 'created' + if: github.event_name == 'release' && github.event.action == 'published' - name: Compile Mystiks Core working-directory: ./mystiks_core @@ -63,7 +63,7 @@ jobs: VERSION="${RELEASE_NAME:1}" sed -i "0,/version='1.0.0'/s//version='${VERSION}'/" setup.py cat setup.py - if: github.event_name == 'release' && github.event.action == 'created' + if: github.event_name == 'release' && github.event.action == 'published' - name: Build the package run: python -m build @@ -73,7 +73,7 @@ jobs: # TWINE_USERNAME: __token__ # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # run: twine upload dist/* - # if: github.event_name == 'release' && github.event.action == 'created' + # if: github.event_name == 'release' && github.event.action == 'published' - name: Upload artifacts uses: actions/upload-artifact@v4