Skip to content

Commit

Permalink
Merge pull request #1573 from jim-parry/lessons-learned
Browse files Browse the repository at this point in the history
Lessons learned
  • Loading branch information
jim-parry authored Dec 2, 2018
2 parents 23063a0 + b53574e commit b8bbadd
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 9 deletions.
10 changes: 8 additions & 2 deletions admin/docbot
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/bin/bash

# Rebuild and deploy CodeIgniter4 user guide
# Rebuild and deploy CodeIgniter4 under-development user guide
#
# This is a quick way to test user guide changes, and if they
# look good, to push them to the gh-pages branch of the
# development repository.
#
# This is not meant for updating the "stable" user guide.

. config
UPSTREAM=https://github.com/bcit-ci/CodeIgniter4.git

# Prepare the nested repo clone folder
cd user_guide_src
Expand Down
14 changes: 14 additions & 0 deletions admin/next.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Version |version|
====================================================

Release Date: Not released

**Next alpha release of CodeIgniter4**


The list of changed files follows, with PR numbers shown.


PRs merged:
-----------

21 changes: 19 additions & 2 deletions admin/release
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ sed -i "/Release Date/s/Not Released/$(date +'%B %d, %Y')/" user_guide_src/sourc
sed -i "/|version|/s/|version|/${RELEASE}/" user_guide_src/source/changelogs/index.rst

# version & date in user_guide_src/source/next.rst
sed -i "/|release|/s/|.*|/${RELEASE}/" user_guide_src/source/changelogs/next.rst
sed -i "/Release Date/s/Not Released/$(date +'%B %d, %Y')/" user_guide_src/source/changelogs/next.rst
sed -i "/|version|/s/|version|/${RELEASE}/" user_guide_src/source/changelogs/next.rst

# establish version-specific changelog
mv user_guide_src/source/changelogs/next.rst user_guide_src/source/changelogs/${RELEASE}.rst
sed -i "|changelogs/next|s|changeslog/next|changelogs/v{$RELEASE}| user_guide_src/source/changelogs/index.rst
mv user_guide_src/source/changelogs/next.rst user_guide_src/source/changelogs/v${RELEASE}.rst
touch user_guide_src/source/changelogs/next.rst
cp admin/next.rst user_guide_src/source/changelogs/next.rst
#---------------------------------------------------
# Setup the distribution folders
Expand Down Expand Up @@ -91,6 +93,15 @@ setup_repo framework
setup_repo userguide
setup_repo appstarter
#---------------------------------------------------
# Housekeeping - make sure writable is flushed of test files
# at least, test files that crop up on my system :-/
rm -f writable/cache/H*
rm -f writable/cache/d*
rm -f writable/cache/s*
rm -f writable/debugbar/debug*
rm -f writable/logs/log*
#---------------------------------------------------
# Generate the user guide
echo -e "${BOLD}Generate the user guide${NORMAL}"
Expand All @@ -101,6 +112,7 @@ cd user_guide_src
rm -rf build/*
echo -e "${BOLD}... HTML version${NORMAL}"
make html
touch build/html/.nojekyll
echo -e "${BOLD}... epub version${NORMAL}"
make epub
Expand All @@ -119,6 +131,11 @@ sed -i "11 G" $file
sed -i "12 a :doc:\`See all the changes. </changelogs/next>\`" $file
sed -i "13 G" $file
#---------------------------------------------------
echo -e "${BOLD}Commit the release branch${NORMAL}"
git add .
git commit -S -m "Release ${RELEASE}"
#---------------------------------------------------
# Build the distributables
Expand Down
3 changes: 0 additions & 3 deletions admin/release-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ git push ${CI_ORG}/CodeIgniter4 develop
echo -e "${BOLD}Pushing to the user guide repository${NORMAL}"
cd ${CI_DIR}/dist/userguide
git push origin master
git push ${CI_ORG}/userguide master

echo -e "${BOLD}Pushing to the framework repository${NORMAL}"
cd ${CI_DIR}/dist/framework
git push origin master
git push ${CI_ORG}/framework master

echo -e "${BOLD}Pushing to the app starter repository${NORMAL}"
cd ${CI_DIR}/dist/appstarter
git push origin master
git push ${CI_ORG}/appstarter master

cd ${CI_DIR}

Expand Down
2 changes: 2 additions & 0 deletions admin/release-notes.bb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CAUTION: THIS FILE IS A MIX OF BBCODE & MARKDOWN... NEEDS PROOFING

CodeIgniter-4.0.0-alpha.1 launches today, after a lengthy build-up :)

Huge shoutout to Lonnie Ezell for all of his hard work getting the vision
Expand Down
2 changes: 1 addition & 1 deletion admin/starter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"require": {
"php": ">=7.1",
"codeigniter4/framework": "^4",
"codeigniter4/framework": "^4@alpha",
"ext-curl": "*",
"ext-intl": "*",
"kint-php/kint": "^2.1",
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/changelogs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Release Date: November 30, 2018
- We welcome Natan Felles, from Brazil, to the code developer team.
He has proven to be passionate, dedicated and thorough :)

:doc:`See all the changes. </changelogs/next>`
:doc:`See all the changes. </changelogs/v4.0.0-alpha.3>`


Version 4.0.0-alpha.2
Expand Down
14 changes: 14 additions & 0 deletions user_guide_src/source/changelogs/next.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Version |version|
====================================================

Release Date: Not released

**Next alpha release of CodeIgniter4**


The list of changed files follows, with PR numbers shown.


PRs merged:
-----------

0 comments on commit b8bbadd

Please sign in to comment.