CodeIgniter4/.github/scripts/deploy-appstarter
kenjis 253d385fb6
chore: move preload.php
codeigniter4/framework also should have this file.
2022-12-04 16:06:03 +09:00

36 lines
565 B
Bash

#!/bin/bash
## Deploy codeigniter4/appstarter
# 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 preload.php'
for fff in $releasable;
do
cp -Rf ${SOURCE}/$fff ./
done
# Copy repo-specific files
cp -Rf ${SOURCE}/admin/starter/. ./
# Commit the changes
git add .
git commit -m "Release ${RELEASE}"
git push