Setup SNAPCRAFT_STORE_CREDENTIALS

This commit is contained in:
WardPearce
2024-10-29 23:22:38 +13:00
parent 3d65dfc397
commit 59c6f46714
+7 -6
View File
@@ -64,13 +64,14 @@ jobs:
shell: powershell
if: runner.os == 'Windows'
- name: Setup Snapcraft
- name: Install snapcraft
if: matrix.runtime == 'linux-x64'
run: sudo snap install snapcraft --classic
- name: Set up snapcraft environment variables
run: echo "SNAPCRAFT_STORE_CREDENTIALS=${{ secrets.SNAPCRAFT_LOGIN }}" >> $GITHUB_ENV
shell: bash
if: matrix.runtime == 'linux-x64'
run: |
sudo snap install snapcraft --classic
echo "$SNAP_TOKEN" | snapcraft login --with -
env:
SNAP_TOKEN: ${{ secrets.SNAPCRAFT_LOGIN }}
- name: Build desktop packages
run: cd ./materialious/electron && npm run electron:make