forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
42 lines (31 loc) · 819 Bytes
/
release.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
set -e
if (( "$#" != 1 ))
then
echo "Tag has to be provided"
exit 1
fi
CURRENT_BRANCH="6.x"
VERSION=$1
# Always prepend with "v"
if [[ $VERSION != v* ]]
then
VERSION="v$VERSION"
fi
for REMOTE in auth broadcasting bus cache config console container contracts cookie database encryption events filesystem hashing http log mail notifications pagination pipeline queue redis routing session support translation validation view
do
echo ""
echo ""
echo "Releasing $REMOTE";
TMP_DIR="/tmp/laravel-split"
REMOTE_URL="[email protected]:illuminate/$REMOTE.git"
rm -rf $TMP_DIR;
mkdir $TMP_DIR;
(
cd $TMP_DIR;
git clone $REMOTE_URL .
git checkout "$CURRENT_BRANCH";
git tag $VERSION
git push origin --tags
)
done