Skip to content

Commit 2ef7fbf

Browse files
Fixing linux build gha workflow
1 parent 8851ff2 commit 2ef7fbf

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,15 @@ jobs:
2727
- name: 'Install Dependencies'
2828
run: npm ci
2929

30-
- name: 'Build Application Packages'
30+
- name: 'Build .deb (Electron Forge)'
3131
run: npm run make
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434

35-
- name: 'Pack Snap'
36-
id: snap-build
37-
run: |
38-
# --destructive-mode allows building without a VM/Container
39-
sudo snapcraft pack --destructive-mode
40-
# Set the snap path as an output for the next steps
41-
echo "SNAP_PATH=$(ls *.snap | head -n 1)" >> $GITHUB_ENV
35+
- name: 'Build .snap (Snapcraft)'
36+
run: npm run make:snap
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4239

4340
- name: 'Upload .deb to Release'
4441
run: |
@@ -53,8 +50,10 @@ jobs:
5350
env:
5451
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5552

56-
- name: 'Publish to Snap Store'
53+
- name: 'Upload .snap to Snap Store'
5754
uses: snapcore/action-publish@v1
55+
run: |
56+
echo "SNAP_PATH=$(find ./out/make/snap -name "*.snap" -type f | head -n 1)" >> $GITHUB_ENV
5857
with:
5958
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
6059
file: ${{ env.SNAP_PATH }}

snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apps:
2626
parts:
2727
app:
2828
plugin: dump
29-
source: ./out/xibo-electron-linux-x64
29+
source: out/xibo-electron-linux-x64
3030
source-type: local
3131
stage-packages:
3232
- libglib2.0-0

0 commit comments

Comments
 (0)