|
- name: Pypi Release
-
- permissions:
- contents: write
-
- on:
- release:
- types:
- - "published"
-
- jobs:
- release:
- name: "Pypi Release"
-
- strategy:
- matrix:
- platform: [ubuntu-latest, ubuntu-20.04, macos-latest, windows-latest]
- python-version: ["3.7"]
- fail-fast: false
- runs-on: ${{ matrix.platform }}
-
- steps:
- - uses: actions/checkout@v3
- - uses: r7kamura/rust-problem-matchers@v1.1.0
-
- # Publish Dora Node Python API
- - name: Set up Python
- uses: actions/setup-python@v2
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install maturin==0.14
- pip install patchelf --upgrade
- - name: Publish wheel
- shell: bash
- env:
- MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
- run: |
- cd apis/python/node
- maturin publish \
- --skip-existing \
- -o wheels \
- --no-sdist \
- --username __token__ \
|