Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/cdci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,31 @@ jobs:
with:
name: vuegen_gui_${{ matrix.os.label }}
path: gui/dist/
- name: Upload Executable to a GitHub Release
if: startsWith(github.ref, 'refs/tags')
- name: Upload MacOS Executable to a GitHub Release)
if: startsWith(matrix.os.runner, 'macos') && startsWith(github.ref, 'refs/tags')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
cp
gh release upload "$TAG_NAME" gui/dist/vuegen_gui.*#vuegen_gui_${{ matrix.os.label }}
echo GITHUB_REF_NAME $GITHUB_REF_NAME
echo "Uploading vuegen_gui_${{ matrix.os.label }} to release $GITHUB_REF_NAME"
echo "Available files in build folder: gui/dist/"
cd gui/dist/
ls -lh
echo "Zip .app folder"
zip -r vuegen_gui_${{ matrix.os.label }}.zip vuegen_gui.app/
echo "Uploading..."
gh release upload $GITHUB_REF_NAME vuegen_gui_${{ matrix.os.label }}.zip
# .app is folder that needs to be zipped
- name: Upload Windows Executable to a GitHub Release
if: startsWith(matrix.os.runner, 'windows') && startsWith(github.ref, 'refs/tags')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo GITHUB_REF_NAME $GITHUB_REF_NAME
echo "Uploading vuegen_gui_${{ matrix.os.label }} to release $GITHUB_REF_NAME"
echo "Available files in build folder: gui/dist/"
ls gui/dist/
echo "Uploading..."
gh release upload $GITHUB_REF_NAME gui/dist/vuegen_gui.exe#vuegen_gui_${{ matrix.os.label }}.exe
# https://cli.github.com/manual/gh_release_upload
# either .app or .exe depending on the OS
# .exe is a single file already