Skip to content

Commit

Permalink
Merge pull request #157 from semi-technologies/fix_publish_trigger
Browse files Browse the repository at this point in the history
remove {{ }} from if condition, remove artifact build
  • Loading branch information
StefanBogdan authored Nov 4, 2022
2 parents 2a14185 + 2239d4b commit d1843b4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build-and-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags') && ${{ github.ref_name == 'main' }} && ${{ github.event.workflow_run.conclusion == 'success' }}
if: startsWith(github.ref, 'refs/tags') && (github.ref_name == 'main') && (github.event.workflow_run.conclusion == 'success')
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -28,11 +28,6 @@ jobs:
pip install wheel build
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
- name: Create Wheel Artifacts
uses: actions/upload-artifact@v3
with:
path: "dist/*.whl"
retention-days: 7
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit d1843b4

Please sign in to comment.