Skip to content

Commit

Permalink
add publish script for family
Browse files Browse the repository at this point in the history
  • Loading branch information
kar committed Jun 21, 2024
1 parent f35ffb5 commit 6e721af
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions publish-android-family.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh

#
# This file is part of Blokada.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# Copyright © 2023 Blocka AB. All rights reserved.
#
# @author Karol Gusak ([email protected])
#

set -e

if [ "$#" -ne 1 ]; then
echo "Error: You must provide the version tag. ./publish.sh TAG" >&2
exit 1
fi

echo "Publishing Blokada Family for Android: $1..."

cd six-android
git co main
git pull
git co $1
git submodule update

cd ../

commit="publish Blokada Family for Android: $1"
tag="android.family.$1"

git add six-android
git commit -m "$commit"
git tag $tag

git push
git push --tags

echo "Done"

0 comments on commit 6e721af

Please sign in to comment.