Skip to content

Commit

Permalink
Fix pipeline condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarlson-gs committed May 13, 2024
1 parent 2256b2e commit bedca73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bedca73

Please sign in to comment.