forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-framework
More file actions
37 lines (29 loc) · 736 Bytes
/
deploy-framework
File metadata and controls
37 lines (29 loc) · 736 Bytes
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
#!/bin/bash
## Deploy codeigniter4/framework
# Setup variables
SOURCE=$1
TARGET=$2
RELEASE=$3
echo "Preparing for version $3"
echo "Merging files from $1 to $2"
# Prepare the source
cd $SOURCE
git checkout master
# Prepare the target
cd $TARGET
git checkout master
rm -rf *
# Copy common files
releasable='app public writable env LICENSE spark system preload.php'
for fff in $releasable;
do
cp -Rf ${SOURCE}/$fff ./
done
# Copy repo-specific files
cp -Rf ${SOURCE}/admin/framework/. ./
# Copy tests files
cp -Rf ${SOURCE}/admin/starter/tests/. ./tests/
# Commit the changes
git add .
git commit -m "Release ${RELEASE}"
bash ${SOURCE}/.github/scripts/secure-git-push https://github.com/codeigniter4/framework.git HEAD:master