Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Remove distribution options to enable default build v0.5.0 behavior #93

Merged
merged 2 commits into from
Jun 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install build check-manifest twine
python -m pip list
- name: Check MANIFEST
run: |
check-manifest
- name: Build a binary wheel and a source tarball
- name: Build a sdist and a wheel
run: |
python -m build --sdist --wheel --outdir dist/ .
python -m build --outdir dist/ .
- name: Verify history available for dev versions
run: |
wheel_name=$(find dist/ -iname "*.whl" -printf "%f\n")
Expand All @@ -47,12 +48,12 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
# every PR will trigger a push event on master, so check the push event is actually coming from master
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'scikit-hep/pylhe'
uses: pypa/[email protected].1
uses: pypa/[email protected].2
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pylhe'
uses: pypa/[email protected].1
uses: pypa/[email protected].2
with:
password: ${{ secrets.pypi_password }}