-
Notifications
You must be signed in to change notification settings - Fork 0
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 #18 from GravityKit/go-live-checklist
"Go Live" items
- Loading branch information
Showing
123 changed files
with
12,797 additions
and
5,168 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,70 @@ | ||
version: 2.1 | ||
|
||
anchors: | ||
context: &context | ||
context: shared | ||
|
||
default_job_config: &default_job_config | ||
working_directory: /home/circleci/plugin | ||
machine: | ||
image: default | ||
|
||
jobs: | ||
build_package_release: | ||
<<: *default_job_config | ||
steps: | ||
- checkout | ||
- run: | ||
name: Getting GK test/build tools | ||
command: | | ||
git clone [email protected]:GravityKit/Tooling.git /home/circleci/tooling | ||
- restore_cache: | ||
key: node-dependencies-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Installing dependencies | ||
command: | | ||
/home/circleci/tooling/build-tools/build_tools.sh npm -o install | ||
/home/circleci/tooling/build-tools/build_tools.sh composer -o "install --no-dev" | ||
- save_cache: | ||
key: node-dependencies-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
- run: | ||
name: Building and packaging | ||
command: | | ||
/home/circleci/tooling/build-tools/build_tools.sh grunt | ||
if [ "${CIRCLE_BRANCH}" != "main" ]; then | ||
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview-dashboard gravityview-dashboard-views.php --include-hash" | ||
else | ||
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview-dashboard gravityview-dashboard-views.php $([[ $(git log -n 1 | grep "\[skip release\]") ]] && echo --include-hash)" | ||
fi | ||
mkdir -p gravityview-dashboard | ||
mv vendor gravityview-dashboard | ||
mv build gravityview-dashboard | ||
zip -gr $(ls gravityview-dashboard-*.zip) gravityview-dashboard build | ||
mkdir .release | ||
cp gravityview-dashboard-*.zip .release | ||
- run: | ||
name: Creating a GitHub release | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" == "main" ]; then | ||
git config user.email "[email protected]" | ||
git config user.name "GravityKit - CI" | ||
/home/circleci/tooling/build-tools/build_tools.sh create_release -o "gravityview-dashboard-views.php $(ls gravityview-dashboard-*.zip)" | ||
fi | ||
- run: | ||
name: Notifying GravityKit Release Manager | ||
command: | | ||
if ! [[ $(git log -n 1 | grep "\[skip notify\]") ]]; then | ||
/home/circleci/tooling/build-tools/build_tools.sh announce_build -o "gravityview-dashboard-views.php $(ls gravityview-dashboard-*.zip) --with-circle" | ||
fi | ||
- store_artifacts: | ||
path: .release | ||
destination: release | ||
|
||
workflows: | ||
version: 2 | ||
test_and_package: | ||
jobs: | ||
- build_package_release: | ||
<<: *context |
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 |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
.circleci export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.husky export-ignore | ||
composer.json export-ignore | ||
composer.lock export-ignore | ||
Gruntfile.js export-ignore | ||
package-lock.json export-ignore | ||
package.json export-ignore | ||
phpcs.xml.dist export-ignore | ||
readme.md export-ignore | ||
translations.pot export-ignore | ||
|
||
assets export-ignore |
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 |
---|---|---|
@@ -1,26 +1,5 @@ | ||
# ignore everything in the root except the "wp-content" directory. | ||
!wp-content/ | ||
|
||
# ignore everything in the "wp-content" directory, except: | ||
# "mu-plugins", "plugins", "themes" directory | ||
wp-content/* | ||
!wp-content/mu-plugins/ | ||
!wp-content/plugins/ | ||
!wp-content/themes/ | ||
|
||
# ignore these plugins | ||
wp-content/plugins/hello.php | ||
|
||
# ignore specific themes | ||
wp-content/themes/twenty*/ | ||
|
||
# ignore node dependency directories | ||
node_modules/ | ||
|
||
# ignore log files and databases | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
.DS_Store | ||
node_modules | ||
vendor | ||
|
||
.sass-cache | ||
build |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.