Update prod desktop workflow

This commit is contained in:
WardPearce
2024-10-29 23:21:32 +13:00
parent fc83cfe80d
commit 3d65dfc397
6 changed files with 28 additions and 21 deletions
+9 -10
View File
@@ -58,20 +58,19 @@ jobs:
run: echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
shell: bash
if: runner.os != 'Windows'
- name: Set up environment variables
run: echo GH_TOKEN=${{ secrets.GITHUB_TOKEN }} >> $env:GITHUB_ENV
shell: powershell
if: runner.os == 'Windows'
- name: Build desktop packages
run: cd ./materialious/electron && npm run electron:make
- name: Upload Snap to Snapcraft
- name: Setup Snapcraft
if: matrix.runtime == 'linux-x64'
uses: snapcore/action-publish@v1
run: |
sudo snap install snapcraft --classic
echo "$SNAP_TOKEN" | snapcraft login --with -
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
with:
snap: ./materialious/electron/dist/*.snap
release: stable
SNAP_TOKEN: ${{ secrets.SNAPCRAFT_LOGIN }}
- name: Build desktop packages
run: cd ./materialious/electron && npm run electron:make