|
|
@ -63,7 +63,7 @@ jobs: |
|
|
|
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} |
|
|
|
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} |
|
|
|
- run: cargo publish |
|
|
|
- run: cargo publish |
|
|
|
working-directory: ./wikibase |
|
|
|
working-directory: ./wikibase |
|
|
|
publish_pypi: |
|
|
|
publish_pypi_linux: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
needs: publish_lib_crate |
|
|
|
needs: publish_lib_crate |
|
|
|
steps: |
|
|
|
steps: |
|
|
@ -76,24 +76,17 @@ jobs: |
|
|
|
user: __token__ |
|
|
|
user: __token__ |
|
|
|
password: ${{ secrets.PYPI_PASSWORD }} |
|
|
|
password: ${{ secrets.PYPI_PASSWORD }} |
|
|
|
packages_dir: ./python/target/wheels |
|
|
|
packages_dir: ./python/target/wheels |
|
|
|
publish_pypi_mac: |
|
|
|
publish_pypi_mac_windows: |
|
|
|
runs-on: macos-latest |
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
needs: publish_lib_crate |
|
|
|
needs: python |
|
|
|
|
|
|
|
strategy: |
|
|
|
|
|
|
|
matrix: |
|
|
|
|
|
|
|
os: [ macos-latest, windows-latest ] |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- run: pip3 install maturin |
|
|
|
- uses: actions/setup-python@v2 |
|
|
|
- run: python3 -m maturin build --release --no-sdist |
|
|
|
|
|
|
|
working-directory: ./python |
|
|
|
|
|
|
|
- uses: pypa/gh-action-pypi-publish@v1.4.1 |
|
|
|
|
|
|
|
with: |
|
|
|
with: |
|
|
|
user: __token__ |
|
|
|
python-version: 3.6 |
|
|
|
password: ${{ secrets.PYPI_PASSWORD }} |
|
|
|
|
|
|
|
packages_dir: ./target/wheels |
|
|
|
|
|
|
|
publish_pypi_windows: |
|
|
|
|
|
|
|
runs-on: windows-latest |
|
|
|
|
|
|
|
needs: publish_lib_crate |
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
|
|
|
- run: pip install maturin |
|
|
|
- run: pip install maturin |
|
|
|
- run: maturin build --release --no-sdist |
|
|
|
- run: maturin build --release --no-sdist |
|
|
|
working-directory: ./python |
|
|
|
working-directory: ./python |
|
|
|