Merge pull request #20 from Mirrowel/proxy #1
This file contains hidden or 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: Build and Release Executable | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| - proxy | |
| paths: | |
| - 'mic_python/python/**' | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' # Specify the Python version you want to use | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r mic_python/python/requirements.txt | |
| pip install pyinstaller | |
| - name: Build executable | |
| working-directory: mic_python/python | |
| run: ./build.bat | |
| - name: Get short SHA | |
| id: sha | |
| run: echo "sha=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT | |
| shell: pwsh | |
| - name: Create Release and Upload Asset | |
| uses: softprops/action-gh-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| files: mic_python/python/dist/talker_mic.exe | |
| tag_name: ${{ steps.sha.outputs.sha }} | |
| name: Build ${{ steps.sha.outputs.sha }} | |
| target_commitish: ${{ github.sha }} |