Revert "fix: Snapcraft"
This reverts commit c1eebc155f82869a3f38c94b89c9d36c402153ab.
This commit is contained in:
parent
a5c12a08ec
commit
fb687a080c
4 changed files with 81 additions and 14 deletions
|
|
@ -194,6 +194,29 @@ build_linux:
|
|||
- build/linux/release/bundle/
|
||||
only:
|
||||
- main
|
||||
|
||||
snap:edge:
|
||||
stage: publish
|
||||
image: "cibuilds/snapcraft:core18"
|
||||
only:
|
||||
- main
|
||||
script:
|
||||
## Manually install the flutter-dev snap, so we can use the flutter extension
|
||||
- 'curl -L $(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/flutter?channel=latest/stable" | jq ".download_url" -r) --output flutter.snap'
|
||||
- sudo mkdir -p /snap/flutter
|
||||
- sudo unsquashfs -d /snap/flutter/current flutter.snap
|
||||
- rm -f flutter.snap
|
||||
- sudo ln -sf /snap/flutter/current/flutter.sh /snap/bin/flutter
|
||||
- sudo ln -sf /snap/flutter/current/env.sh /snap/bin/env.sh
|
||||
- snapcraft
|
||||
- echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
|
||||
- snapcraft login --with snapcraft.login
|
||||
- snapcraft push --release=edge *.snap
|
||||
- snapcraft logout
|
||||
artifacts:
|
||||
paths:
|
||||
- './*.snap'
|
||||
when: on_success
|
||||
|
||||
snap:publish:
|
||||
stage: publish
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue