Fix for android clients that do not expect encrypted connections #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python - Build packages & Release | |
on: | |
push: {} | |
pull_request: {} | |
release: | |
types: [created] | |
jobs: | |
build-python-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Python stubs | |
run: cargo run --bin stub_gen | |
- name: Install Python build dependencies | |
run: pip install maturin==1.8.2 | |
- name: Build Python packages | |
run: maturin build --sdist --release -m pyadb_client/Cargo.toml | |
- name: Publish Python packages | |
if: github.event_name == 'release' && github.event.action == 'created' | |
run: maturin publish -m pyadb_client/Cargo.toml --non-interactive | |
env: | |
MATURIN_PYPI_TOKEN: ${{ secrets.MATURIN_PYPI_TOKEN }} | |
- name: "Publish GitHub artefacts" | |
if: github.event_name == 'release' && github.event.action == 'created' | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
target/wheels/pyadb_client*.whl | |
target/wheels/pyadb_client*.tar.gz |