summaryrefslogtreecommitdiffstats
path: root/releases/release-snap.sh
blob: 6ef37bffa1f60be1e6526bfb8202f92fc0a81fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Usage: ./release.sh 1.36

# Cleanup
cd ~/repos
./release-cleanup.sh

# Build Source
cd ~/repos
./rebuild-release.sh

# Build Snap
cd ~/repos/wekan
rm -rf packages
sudo snapcraft

# Cleanup
cd ~/repos
./release-cleanup.sh

# Push snap
cd ~/repos/wekan
sudo snap install --dangerous wekan_$1_amd64.snap
echo "Now you can test local installed snap."
snapcraft push wekan_$1_amd64.snap
#scp wekan_$1_amd64.snap x2:/var/snap/wekan/common/releases.wekan.team/
scp wekan_$1_amd64.snap x2:/var/www/releases.wekan.team/
mv wekan_$1_amd64.snap ..