Skip to content

Fix adb detection on Windows #9

Fix adb detection on Windows

Fix adb detection on Windows #9

Workflow file for this run

name: Release Workflow
on:
push:
tags:
- '*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Execute build script
run: |
chmod +x ./pyinstaller_script_default.sh
./pyinstaller_script_default.sh
- name: Zip the artifact
run: zip -r SimpleAdb.zip ./dist/SimpleAdb
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./SimpleAdb.zip
asset_name: SimpleAdb.zip
asset_content_type: application/zip