mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
build: fix snap build
This commit is contained in:
parent
af7ba05845
commit
4d3160d2bc
2 changed files with 20 additions and 2 deletions
|
|
@ -15,7 +15,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
uses: samuelmeuli/action-snapcraft@fceeb3c308e76f3487e72ef608618de625fb7fe8 # v3
|
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
|
||||||
|
with:
|
||||||
|
max_attempts: 3
|
||||||
|
timeout_minutes: 10
|
||||||
|
retry_wait_seconds: 30
|
||||||
|
command: |
|
||||||
|
if ! command -v snapcraft >/dev/null 2>&1; then
|
||||||
|
sudo snap install snapcraft --classic --channel stable
|
||||||
|
fi
|
||||||
|
snapcraft version
|
||||||
- run: yes | snapcraft promote superproductivity --from-channel latest/edge --to-channel latest/stable
|
- run: yes | snapcraft promote superproductivity --from-channel latest/edge --to-channel latest/stable
|
||||||
env: # Workaround for https://github.com/snapcore/snapcraft/issues/4439
|
env: # Workaround for https://github.com/snapcore/snapcraft/issues/4439
|
||||||
SNAPCRAFT_HAS_TTY: 'true'
|
SNAPCRAFT_HAS_TTY: 'true'
|
||||||
|
|
|
||||||
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -112,7 +112,16 @@ jobs:
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
uses: samuelmeuli/action-snapcraft@fceeb3c308e76f3487e72ef608618de625fb7fe8 # v3
|
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
|
||||||
|
with:
|
||||||
|
max_attempts: 3
|
||||||
|
timeout_minutes: 10
|
||||||
|
retry_wait_seconds: 30
|
||||||
|
command: |
|
||||||
|
if ! command -v snapcraft >/dev/null 2>&1; then
|
||||||
|
sudo snap install snapcraft --classic --channel stable
|
||||||
|
fi
|
||||||
|
snapcraft version
|
||||||
|
|
||||||
- name: Build/Release Electron app
|
- name: Build/Release Electron app
|
||||||
uses: johannesjo/action-electron-builder@9ea9e2d991c97668843d57337848e3e2b1ffab3d # v1
|
uses: johannesjo/action-electron-builder@9ea9e2d991c97668843d57337848e3e2b1ffab3d # v1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue