Workflow: Fix release attachments and distinct artifact naming
This commit is contained in:
@@ -19,11 +19,14 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --name tamigo-cli tamigo.py
|
pyinstaller --onefile --name tamigo-cli tamigo.py
|
||||||
- name: Upload artifact
|
- name: Rename for release
|
||||||
uses: actions/upload-artifact@v3
|
run: mv dist/tamigo-cli dist/tamigo-cli-linux
|
||||||
|
- name: Upload to Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: tamigo-cli-linux
|
files: dist/tamigo-cli-linux
|
||||||
path: dist/tamigo-cli
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -35,8 +38,11 @@ jobs:
|
|||||||
-v "${{ github.workspace }}:/src" \
|
-v "${{ github.workspace }}:/src" \
|
||||||
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: Rename for release
|
||||||
uses: actions/upload-artifact@v3
|
run: mv dist/tamigo-cli.exe dist/tamigo-cli-windows.exe
|
||||||
|
- name: Upload to Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: tamigo-cli-windows
|
files: dist/tamigo-cli-windows.exe
|
||||||
path: dist/tamigo-cli.exe
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user