Attempt to fix macOS and Windows wheel upload on CI

pull/76/head
Tpt 4 years ago
parent 693f6d1027
commit e0b78101b7
  1. 14
      .github/workflows/release.yml

@ -85,13 +85,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml - run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin build --release - run: docker run --rm -v $(pwd):/io konstin2/maturin publish -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./python/target/wheels
publish_pypi_mac_windows: publish_pypi_mac_windows:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: publish_lib_crate needs: publish_lib_crate
@ -104,13 +99,8 @@ jobs:
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install maturin - run: pip install maturin
- run: maturin build --release --no-sdist - run: maturin publish --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./target/wheels
publish_npm: publish_npm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

Loading…
Cancel
Save