Workflow: Improve job naming and artifact separation
This commit is contained in:
@@ -9,6 +9,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
|
name: Build Linux Binary
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -27,13 +28,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --name tamigo-cli tamigo.py
|
pyinstaller --onefile --name tamigo-cli tamigo.py
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload Linux Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: tamigo-cli-linux
|
name: binary-linux
|
||||||
path: dist/tamigo-cli
|
path: dist/tamigo-cli
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
|
name: Build Windows Binary
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -45,8 +47,8 @@ jobs:
|
|||||||
cdrx/pyinstaller-windows \
|
cdrx/pyinstaller-windows \
|
||||||
sh -c "pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
|
sh -c "pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload Windows Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: tamigo-cli-windows
|
name: binary-windows
|
||||||
path: dist/tamigo-cli.exe
|
path: dist/tamigo-cli.exe
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
release-linux:
|
||||||
|
name: Build & Release Linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -28,7 +29,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build-windows:
|
release-windows:
|
||||||
|
name: Build & Release Windows
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user