Skip to content

Commit 517d4a4

Browse files
committed
Continued tweaking
1 parent a264372 commit 517d4a4

File tree

2 files changed

+38
-119
lines changed

2 files changed

+38
-119
lines changed

admin/release

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ version=4
1111
qualifier=
1212

1313
branch=release-
14-
devonly='admin/ build/ contributing/ user_guide_src/ CODE_OF_CONDUCT.md DCO.txt PULL_REQUEST_TEMPLATE.md'
14+
releasable='application docs public system writable README.md composer.json contributing.md env license.txt spark'
15+
release_empty='tests tests/_support'
1516
which=release
1617

1718
BOLD='\033[1m'
@@ -77,38 +78,58 @@ sed -i "/|release|/s/|.*|/${version}${qualifier}/" user_guide_src/source/changel
7778
sed -i "/Release Date/s/Not Released/$(date +'%B %d, %Y')/" user_guide_src/source/changelog.rst
7879

7980
#---------------------------------------------------
80-
# Generate the user guide
81-
echo -e "${BOLD}Generate the user guide${NORMAL}"
81+
# Setup the distribution folders
82+
83+
if [ -d dist ]; then
84+
rm -rf dist/
85+
fi
86+
mkdir dist
8287

83-
if [ -d docs ]; then
84-
rm -rf docs/
88+
if [ -d build ]; then
89+
rm -rf build/
8590
fi
91+
mkdir build
92+
93+
#---------------------------------------------------
94+
# Generate the user guide
95+
echo -e "${BOLD}Generate the user guide${NORMAL}"
8696

8797
cd user_guide_src
8898

8999
# make the UG & embed it in the project root
90100
rm -rf build/*
91101
make html
92-
mv build/html ../docs
93-
touch ../docs/.nojekyll
94-
95-
# make the epub, but leave it inside the gitignored user_guide_src to deal with separately
96-
make epub
97102

98103
cd ..
99104

105+
#---------------------------------------------------
106+
# And finally, get ready for merging
107+
git add .
108+
git commit -m "Release ${version}${qualifier}"
109+
100110
#---------------------------------------------------
101111
# Hide stuff from the release bundle
102-
echo -e "${BOLD}Hide stuff from the release bundle${NORMAL}"
112+
echo -e "${BOLD}Build the distributables${NORMAL}"
103113

104-
for f in $devonly; do
105-
echo $f >> .gitignore
114+
for f in $releasable; do
115+
cp -r $f build/
116+
done
117+
for f in $release_empty; do
118+
mkdir build/$f
106119
done
107120

108-
#---------------------------------------------------
109-
# And finally, get ready for merging
110-
git add .
111-
git commit -m "Release ${version}${qualifier}"
121+
zip -r v${version}${qualifier}.zip dist/
122+
tar -zcvf v${version}${qualifier}.tar.gz dist/
123+
rm -rf dist/*
124+
mv *.zip dist/
125+
mv *.tar.gz dist/
126+
127+
# Can't forget the epub
128+
cd user_guide_src
129+
make epub
130+
cd ..
131+
mv user_guide_src/build/epub/CodeIgniter4.epub dist/CodeIgniter-${version}${qualifier}.epub
132+
mv user_guide_src/build/html /dist/docs
112133

113134
#---------------------------------------------------
114135
# Done for now

index.html

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)