-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2912 from codeigniter4/develop
4.0.3 release
- Loading branch information
Showing
394 changed files
with
8,823 additions
and
7,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/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.txt spark .gitignore' | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/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.txt spark .gitignore system' | ||
for fff in $releasable ; do | ||
cp -Rf ${SOURCE}/$fff ./ | ||
done | ||
|
||
# Copy repo-specific files | ||
cp -Rf ${SOURCE}/admin/framework/. ./ | ||
|
||
# Commit the changes | ||
git add . | ||
git commit -m "Release ${RELEASE}" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Deploy | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
framework: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Identify | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
with: | ||
path: source | ||
|
||
- name: Checkout target | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: codeigniter4/framework | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: framework | ||
|
||
- name: Chmod | ||
run: chmod +x ./source/.github/scripts/deploy-framework | ||
|
||
- name: Deploy | ||
run: ./source/.github/scripts/deploy-framework ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/framework ${GITHUB_REF##*/} | ||
|
||
- name: Release | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{secrets.ACCESS_TOKEN}} | ||
script: | | ||
const release = await github.repos.getLatestRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}) | ||
github.repos.createRelease({ | ||
owner: context.repo.owner, | ||
repo: 'framework', | ||
tag_name: release.data.tag_name, | ||
name: release.data.name, | ||
body: release.data.body | ||
}) | ||
appstarter: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Identify | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
with: | ||
path: source | ||
|
||
- name: Checkout target | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: codeigniter4/appstarter | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: appstarter | ||
|
||
- name: Chmod | ||
run: chmod +x ./source/.github/scripts/deploy-appstarter | ||
|
||
- name: Deploy | ||
run: ./source/.github/scripts/deploy-appstarter ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/appstarter ${GITHUB_REF##*/} | ||
|
||
- name: Release | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{secrets.ACCESS_TOKEN}} | ||
script: | | ||
const release = await github.repos.getLatestRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}) | ||
github.repos.createRelease({ | ||
owner: context.repo.owner, | ||
repo: 'appstarter', | ||
tag_name: release.data.tag_name, | ||
name: release.data.name, | ||
body: release.data.body | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.