Remove publish action for push/pull requests

This commit is contained in:
Sam Bentley
2021-05-27 13:40:58 +01:00
parent ba08a5db4d
commit e874ecb3d2

View File

@@ -41,45 +41,4 @@ jobs:
maturin develop
deactivate
rm -r lib/
pytest -v --capture=tee-sys
publish:
needs: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pandas maturin
- name: Build Python package
run: maturin build --release
- name: List wheels
if: matrix.os == 'windows-latest'
run: dir target\wheels\
- name: List wheels
if: matrix.os != 'windows-latest'
run: find ./target/wheels/
- name: publish manylinux wheels
if: matrix.os == 'ubuntu-latest'
run: dir target\wheels\
- name: PyPi publish
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: maturin publish --username Yeltneb
pytest -v --capture=tee-sys