Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,15 @@ jobs:
- name: 'Install Dependencies'
run: npm ci

- name: 'Build Application Packages'
- name: 'Build .deb (Electron Forge)'
run: npm run make
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

- name: 'Upload .deb to Release'
run: |
Expand All @@ -53,8 +50,10 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Publish to Snap Store'
- name: 'Upload .snap to Snap Store'
uses: snapcore/action-publish@v1
run: |
echo "SNAP_PATH=$(find ./out/make/snap -name "*.snap" -type f | head -n 1)" >> $GITHUB_ENV
with:
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
file: ${{ env.SNAP_PATH }}
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apps:
parts:
app:
plugin: dump
source: ./out/xibo-electron-linux-x64
source: out/xibo-electron-linux-x64
source-type: local
stage-packages:
- libglib2.0-0
Expand Down