Added fix for GH_TOKEN setting for windows

This commit is contained in:
WardPearce
2024-05-06 18:45:53 +12:00
parent 2eaab6b8aa
commit f130e7806e
+9 -3
View File
@@ -60,6 +60,12 @@ jobs:
run: cd ./materialious/electron && npm install
- name: Build desktop packages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd ./materialious/electron && GH_TOKEN=${GH_TOKEN} npm run electron:make
run: |
cd ./materialious/electron
if [[ "$RUNNER_OS" == "Windows" ]]; then
$env:GH_TOKEN = "${{ secrets.GITHUB_TOKEN }}"
npm run electron:make
else
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
npm run electron:make
fi