Skip to content

Commit 9186da0

Browse files
committed
🐛 environment variable access in powershell
1 parent 8db23e3 commit 9186da0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/cdci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,14 @@ jobs:
183183
gh release upload $GITHUB_REF_NAME vuegen_gui_${{ matrix.os.label }}.zip
184184
# .app is folder that needs to be zipped
185185
- name: Upload Windows Executable to a GitHub Release
186-
if: startsWith(matrix.os.runner, 'windows') && startsWith(github.ref, 'refs/tags')
186+
if: startsWith(matrix.os.runner, 'windows')
187187
env:
188188
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
189189
run: |
190-
echo GITHUB_REF_NAME $GITHUB_REF_NAME
191-
echo "Uploading vuegen_gui_${{ matrix.os.label }} to release $GITHUB_REF_NAME"
190+
echo env:GITHUB_REF_NAME $env:$GITHUB_REF_NAME
191+
$GITHUB_REF_NAME = $env:$GITHUB_REF_NAME
192+
echo "Uploading vuegen_gui_${{ matrix.os.label }} to release $GITHUB_REF_NAME"
193+
$GITHUB_REF_NAME = 'v0.3.0-beta'
192194
echo "Available files in build folder: gui/dist/"
193195
ls gui/dist/
194196
echo "Uploading..."

0 commit comments

Comments
 (0)