Skip to content

Commit 4a191d8

Browse files
committed
🚧 gh release upload for adding executables to release?
1 parent e5b5985 commit 4a191d8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cdci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ jobs:
134134
python-version: ["3.12"]
135135
os:
136136
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#example-using-a-multi-dimension-matrix
137-
- runner: "ubuntu-latest"
138-
label: "ubuntu-latest_LTS-x64"
139137
- runner: "macos-13"
140138
label: "macos-13-x64"
141139
- runner: "macos-15"
@@ -169,3 +167,13 @@ jobs:
169167
with:
170168
name: vuegen_gui_${{ matrix.os.label }}
171169
path: gui/dist/
170+
- name: Upload Executable to a GitHub Release
171+
if: startsWith(github.ref, 'refs/tags')
172+
env:
173+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174+
run: |
175+
TAG_NAME=${GITHUB_REF#refs/tags/}
176+
cp
177+
gh release upload "$TAG_NAME" gui/dist/vuegen_gui.*#vuegen_gui_${{ matrix.os.label }}
178+
# https://cli.github.com/manual/gh_release_upload
179+
# either .app or .exe depending on the OS

0 commit comments

Comments
 (0)