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