[neon/snap-packaging/gwenview-snap/Neon/release-24.08] debian: populate the KDE_SNAP_CHANNEL variable

Carlos De Maine null at kde.org
Mon Nov 11 10:44:39 GMT 2024


Git commit 548100e3e3bcd73ac22788bb97b9dc995e36a3d4 by Carlos De Maine.
Committed on 11/11/2024 at 10:44.
Pushed by carlosdem into branch 'Neon/release-24.08'.

populate the KDE_SNAP_CHANNEL variable

M  +9    -6    debian/snap-snapcraft-lxd-proto.yml

https://invent.kde.org/neon/snap-packaging/gwenview-snap/-/commit/548100e3e3bcd73ac22788bb97b9dc995e36a3d4

diff --git a/debian/snap-snapcraft-lxd-proto.yml b/debian/snap-snapcraft-lxd-proto.yml
index b806720..ee5f75d 100644
--- a/debian/snap-snapcraft-lxd-proto.yml
+++ b/debian/snap-snapcraft-lxd-proto.yml
@@ -77,25 +77,28 @@ snap_snapcraft_deploy:
   inherit:
     default: true
   script:
+    - echo "KDE_SNAP_BRANCH is $KDE_SNAP_BRANCH and KDE_SNAP_CHANNEL IS $KDE_SNAP_CHANNEL"
+    - ls -lsh
+    - unzip -e Snap_artifacts.zip
+    - export KDE_SNAP_BRANCH=$(cat build.env)
     - |
       # set the channel for the snap dependent on which branch we are building
       # master = edge
-      if [ $KDE_SNAP_BRANCH == "master" ]; then
+      if [ "$KDE_SNAP_BRANCH" == "master" ]; then
           export KDE_SNAP_CHANNEL="edge"
       # RC branch = beta
-      elif [ $KDE_SNAP_BRANCH == "Neon/release-24.12" ]; then
+      elif [ "$KDE_SNAP_BRANCH" == "Neon/release-24.12" ]; then
           export KDE_SNAP_CHANNEL="beta"
       # Branch tags = candidate
-      elif [ $KDE_SNAP_BRANCH == "Neon/release-24.08" ]; then
+      elif [ "$KDE_SNAP_BRANCH" == "Neon/release-24.08" ]; then
           export KDE_SNAP_CHANNEL="candidate"
       # new release tag (new tarball release) = stable needs to be set off manually until ephemeral vms are a thing
-      #elif [ $KDE_SNAP_BRANCH == "v24.08.3" ]; then
-      elif [ $SNAP_PUBLISH_TYPE" == "manual" ]; then
+      #elif [ "$KDE_SNAP_BRANCH" == "v24.08.3" ]; then
+      elif [ "$SNAP_PUBLISH_TYPE" == "manual" ]; then
           export KDE_SNAP_CHANNEL="stable"
       else
           echo "this is not a publishable branch"
       fi
-    - echo "KDE_SNAP_BRANCH is $KDE_SNAP_BRANCH and KDE_SNAP_CHANNEL IS $KDE_SNAP_CHANNEL"
     - snapcraft push --release=$KDE_SNAP_CHANNEL *.snap
   allow_failure: true
   interruptible: true


More information about the Neon-commits mailing list