-
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.
displicandum-gh-pages (#8): jeffreytse/jekyll-deploy-action testum
- Loading branch information
Showing
3 changed files
with
50 additions
and
27 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 |
---|---|---|
|
@@ -46,31 +46,50 @@ jobs: | |
- name: "Steps before Jekyll: rm .gitignore" | ||
run: rm .gitignore | ||
|
||
# - name: "DEBUG: sudo apt install tree" | ||
# run: sudo apt install tree | ||
|
||
# - name: "DEBUG: pwd" | ||
# run: pwd | ||
### GitHub pages, alternative 1 __________________________________________ | ||
## If not using customizations beyond GitHub Pages default plugins, | ||
## Use this option | ||
# - name: Deploy to HXL-CPLP/hapi.etica.ai | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# # github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
# user_name: "github-actions[bot]" | ||
# user_email: "github-actions[bot]@users.noreply.github.com" | ||
# external_repository: HXL-CPLP/hapi.etica.ai | ||
# publish_branch: gh-pages | ||
# publish_dir: "./" | ||
# destination_dir: ./docs | ||
# enable_jekyll: true | ||
# # cname: hapi.etica.ai | ||
|
||
# - name: "DEBUG: tree -a" | ||
# run: tree -a | ||
### GitHub pages, alternative 2 __________________________________________ | ||
## @see https://github.com/jeffreytse/jekyll-deploy-action | ||
## This allow use extra customizations on Jekyll | ||
|
||
- name: Deploy to HXL-CPLP/hapi.etica.ai | ||
uses: peaceiris/actions-gh-pages@v3 | ||
# Use GitHub Actions' cache to cache dependencies on servers | ||
# @see https://github.com/jeffreytse/jekyll-deploy-action/issues/14#issuecomment-808108993 | ||
# @see https://github.com/nektos/act/issues/285 | ||
# Error "Attempt 1 of 2 failed with error: Cache Service Url not found, unable to restore cache." | ||
# - uses: actions/cache@v2 | ||
# with: | ||
# path: vendor/bundle | ||
# # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
# key: ${{ runner.os }}-gems-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-gems- | ||
|
||
# Use GitHub Deploy Action to build and deploy to Github | ||
- uses: jeffreytse/[email protected] | ||
with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
user_name: "github-actions[bot]" | ||
user_email: "github-actions[bot]@users.noreply.github.com" | ||
external_repository: HXL-CPLP/hapi.etica.ai | ||
publish_branch: gh-pages | ||
publish_dir: "./" | ||
destination_dir: ./docs | ||
enable_jekyll: true | ||
# cname: hapi.etica.ai | ||
# - name: Deploy | ||
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: ./out | ||
provider: 'github' | ||
token: ${{ secrets.GH_TOKEN }} # It's your Personal Access Token(PAT) | ||
repository: 'HXL-CPLP/hapi.etica.ai' # Default is current repository | ||
branch: 'gh-pages' # Default is gh-pages for github provider | ||
jekyll_src: './' # Default is root directory | ||
jekyll_cfg: '_config.yml' # Default is _config.yml | ||
# jekyll_baseurl: '' # Default is according to _config.yml | ||
bundler_ver: '>=0' # Default is latest bundler version | ||
cname: 'hapi.etica.ai' # Default is to not use a cname | ||
actor: 'eticaaibot' # Default is the GITHUB_ACTOR |
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