From 073f8846aab8289b1e4d8ecd268d5492d1c10799 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Tue, 23 Jun 2020 18:25:58 +0100 Subject: [PATCH] Set the built snap to stable when it's tagged or devel when not --- snap/snapcraft.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index bac425d..29a7b7e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -8,7 +8,6 @@ summary: An asynchronous nomadic game about exploring as part of a loose communi # TODO: Add more to the description description: | An asynchronous nomadic game about exploring as part of a loose community. -grade: devel # Upgrade to 'stable' when ready confinement: strict adopt-info: go-rove @@ -43,5 +42,7 @@ parts: override-pull: | snapcraftctl pull snapcraftctl set-version $(git describe --always --long --dirty --tags) + git describe --exact-match HEAD 2> /dev/null && snapcraftctl set-grade "stable" || snapcraftctl set-grade "devel" + # TODO: Add the version into the build itself (currently using ldflags) # TODO: Server needs /usr/share/dict/words