Skip to content

Commit 1f4ca02

Browse files
committed
🐛 see if GITHUB_REF_NAME works, if cond. are ignored.. try different
1 parent fe2787e commit 1f4ca02

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/cdci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,12 @@ jobs:
168168
name: vuegen_gui_${{ matrix.os.label }}
169169
path: gui/dist/
170170
- name: Upload MacOS Executable to a GitHub Release)
171-
if: startsWith(${{ matrix.os.runner }}, 'macos')
171+
if: startsWith(matrix.os.runner, 'macos')
172172
env:
173173
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174174
run: |
175175
TAG_NAME=${GITHUB_REF#refs/tags/}
176+
echo GITHUB_REF_NAME $GITHUB_REF_NAME
176177
TAG_NAME=v0.3.0-alpha
177178
echo "Uploading vuegen_gui_${{ matrix.os.label }} to release $TAG_NAME"
178179
echo "Available files in build folder: gui/dist/"
@@ -182,11 +183,13 @@ jobs:
182183
echo "Uploading..."
183184
gh release upload $TAG_NAME vuegen_gui_${{ matrix.os.label }}.zip
184185
- name: Upload Windows Executable to a GitHub Release
185-
if: startsWith(${{ matrix.os.runner }}, 'windows')
186+
if: startsWith(matrix.os.runner, 'windows')
186187
env:
187188
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188189
run: |
189190
$TAG_NAME = $env:GITHUB_REF -replace 'refs/tags/', ''
191+
echo GITHUB_REF_NAME $GITHUB_REF_NAME
192+
$TAG_NAME= $GITHUB_REF_NAME
190193
$TAG_NAME= v0.3.0-alpha
191194
echo "Uploading vuegen_gui_${{ matrix.os.label }} to release $TAG_NAME"
192195
echo "Available files in build folder: gui/dist/"

0 commit comments

Comments
 (0)