Skip to content

Commit

Permalink
🤖 ensure snapd can be installed in Ubuntu (#443)
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa authored Dec 2, 2024
1 parent d27fa92 commit f15d075
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: ./utils/upload-artifact.js electronim-linux-x86_64.AppImage application/octet-stream
- name: Publish Snap
run: |
sudo apt-get install snapd
sudo apt update && sudo apt-get install snapd
sudo chown root:root / # Snapcraft requires '/' to be root owned
sudo snap install snapcraft --classic
snapcraft push --release=stable ./dist/electronim-linux-amd64.snap
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Snap
# Not needed for this job just to verify it can be installed for use in the publishing workflow
run: |
sudo apt update && sudo apt-get install snapd
sudo chown root:root / # Snapcraft requires '/' to be root owned
sudo snap install snapcraft --classic
- name: Install
run: npm install
- name: Build
Expand Down

0 comments on commit f15d075

Please sign in to comment.