Skip to content

Commit

Permalink
fix changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NavinKumarMNK committed Apr 16, 2024
1 parent 4e6dc75 commit 18ee2d7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cli-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ on:

jobs:
build:
runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -27,6 +29,9 @@ jobs:
- name: Build with PyInstaller
run: pyinstaller --onefile cli.py

- name: Rename executable
run: mv ./dist/cli ./dist/cli-${{ matrix.os }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -45,6 +50,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/cli
asset_name: cli
asset_path: ./dist/cli-${{ matrix.os }}
asset_name: cli-${{ matrix.os }}
asset_content_type: application/octet-stream

0 comments on commit 18ee2d7

Please sign in to comment.