fix: pass platform and correctly release (#952)

This commit is contained in:
Baptiste Augrain
2021-12-18 03:28:34 +01:00
committed by GitHub
parent e5de9c3096
commit 851b5f2659
3 changed files with 17 additions and 6 deletions

View File

@@ -17,7 +17,6 @@ else
echo "$SNAP_STORE_LOGIN" | snapcraft login --with -
ARCHITECTURE=$(dpkg --print-architecture)
echo "Architecture: ${ARCHITECTURE}"
SNAP_VERSION=$(snapcraft list-revisions codium | grep -F stable* | grep ${ARCHITECTURE} | tr -s ' ' | cut -d ' ' -f 4)

11
stores/snapcraft/release.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
CALLER_DIR=$( pwd )
cd "$( dirname "${BASH_SOURCE[0]}" )"
snapcraft upload --release=stable *.snap
cd "${CALLER_DIR}"