From 5f5c12e97137b66eeac27a12725c803e50bfa5bb Mon Sep 17 00:00:00 2001 From: Sawood Alam Date: Sat, 8 Feb 2020 12:07:34 -0500 Subject: [PATCH] Eliminate the need of mandatory destination config --- README.md | 3 +-- build/README.md | 3 +-- build/entrypoint.sh | 2 +- deploy/README.md | 1 - entrypoint.sh | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cb1e832..4cad9ff 100644 --- a/README.md +++ b/README.md @@ -41,5 +41,4 @@ Clones the repo, builds the site, and commits it back to the gh-pages branch of * This uses the v2 of the Actions beta—note the Yaml based workflow syntax—you must have access to the beta release of actions. * **`GITHUB_TOKEN`, privileges are still being sorted out by the Actions/GH-Pages team. Changes pushed to your GH-pages branch will only be picked up by the Github Pages server if your workflow is in a private repository.** * Needs a .gemfile -* `destination:` should be set to `./build` in your _config.yml file—as God demands. -* Be sure that any custom gems needed are included in your Gemfile. \ No newline at end of file +* Be sure that any custom gems needed are included in your Gemfile. diff --git a/build/README.md b/build/README.md index acb386d..db9c3dc 100644 --- a/build/README.md +++ b/build/README.md @@ -25,5 +25,4 @@ Clones the repo and builds the site—that's it. ## Caveats * Needs a .gemfile -* `destination:` should be set to `./build` in your _config.yml file—as God demands. -* Be sure that any custom gems needed are included in your Gemfile. \ No newline at end of file +* Be sure that any custom gems needed are included in your Gemfile. diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 167dc7e..925132a 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -3,6 +3,6 @@ echo '👍 ENTRYPOINT HAS STARTED—INSTALLING THE GEM BUNDLE' bundle install > /dev/null 2>&1 bundle list | grep "jekyll (" echo '👍 BUNDLE INSTALLED—BUILDING THE SITE' -bundle exec jekyll build +bundle exec jekyll build -d ./build echo '👍 THE SITE IS BUILT—GREAT SUCCESS' diff --git a/deploy/README.md b/deploy/README.md index 82eb896..688834b 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -28,5 +28,4 @@ Grabs the site files in `build` and commits them to the gh-pages branch of the s ## Caveats -* `destination:` should have beeen set to `./build` in your _config.yml file—as God demands. * Remember when adding this action to a workflow that will also use a build action, you need to define that action in the `needs` paramater. diff --git a/entrypoint.sh b/entrypoint.sh index c54b598..f5b50b8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,7 +6,7 @@ echo '👍 ENTRYPOINT HAS STARTED—INSTALLING THE GEM BUNDLE' bundle install bundle list | grep "jekyll (" echo '👍 BUNDLE INSTALLED—BUILDING THE SITE' -bundle exec jekyll build +bundle exec jekyll build -d ./build echo '👍 THE SITE IS BUILT—PUSHING IT BACK TO GITHUB-PAGES' cd build remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \