Fix typo in Device Row UI #23
Workflow file for this run
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: Publish CLI | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- client-v* | |
jobs: | |
build: | |
name: Build CLI | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.x' | |
- name: Setup Virtual Environment and Install Dependencies (Unix) | |
if: runner.os != 'Windows' | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
cd client | |
pip install -r requirements.txt | |
shell: bash | |
- name: Setup Virtual Environment and Install Dependencies (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
python -m venv venv | |
.\venv\Scripts\Activate.ps1 | |
cd client | |
pip install -r requirements.txt | |
shell: powershell | |
- name: Build with PyInstaller (Unix) | |
if: runner.os != 'Windows' | |
run: | | |
source venv/bin/activate | |
pyinstaller --onefile --name devmate client/devmatecli/client.py | |
shell: bash | |
- name: Build with PyInstaller (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
.\venv\Scripts\Activate.ps1 | |
pyinstaller --onefile --name devmate client\devmatecli\client.py | |
shell: powershell | |
- name: Upload Binary | |
uses: actions/[email protected] | |
with: | |
name: devmatecli-${{ matrix.os }} | |
path: ./dist/devmate* | |
release: | |
needs: build | |
name: Create Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
actions: write | |
steps: | |
# Need to get the release-cli.js script | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Download All Artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: ./artifacts | |
- name: Rename Ubuntu to Linux | |
run: | | |
mv ./artifacts/devmatecli-ubuntu-latest ./artifacts/devmatecli-linux-latest | |
shell: bash | |
- name: Archive Artifacts | |
run: | | |
tar czvf devmate-cli.tar.gz -C artifacts . | |
shell: bash | |
- name: Create Release | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const createReleaseLogic = require('.github/scripts/release-cli.js'); | |
createReleaseLogic({ github, context, core }); |