-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding base_url parameter to Github Actions config
The main usage of this actions is serving Jekyll sites from GH Pages. As in majority of cases this sites get served from sub domain (by repo name) it would useful to be able to set base_url for this sites. Sure it's probably can be done with different configs (_config_production.yml etc) but having this option makes it easier.
- Loading branch information
1 parent
c2d3f38
commit 0f2997b
Showing
3 changed files
with
17 additions
and
12 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
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,31 +1,35 @@ | ||
name: 'Build Jekyll for GitHub Pages' | ||
description: 'A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages' | ||
author: 'GitHub' | ||
name: "Build Jekyll for GitHub Pages" | ||
description: "A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages" | ||
author: "GitHub" | ||
inputs: | ||
source: | ||
description: 'Directory where the source files reside.' | ||
description: "Directory where the source files reside." | ||
required: false | ||
default: ./ | ||
destination: | ||
description: 'Output directory of the build. Although it can be nested inside the source, it cannot be the same as the source directory.' | ||
description: "Output directory of the build. Although it can be nested inside the source, it cannot be the same as the source directory." | ||
required: false | ||
default: ./_site | ||
future: | ||
description: 'Publishes posts with a future date. When set to true, the build is made with the --future option which overrides the future option that may be set in a Jekyll configuration file.' | ||
description: "Publishes posts with a future date. When set to true, the build is made with the --future option which overrides the future option that may be set in a Jekyll configuration file." | ||
required: false | ||
default: false | ||
build_revision: | ||
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA.' | ||
description: "The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA." | ||
required: false | ||
default: ${{ github.sha }} | ||
base_url: | ||
description: "Name of sub-directory the site is served from e.g., /my-repo-name." | ||
required: false | ||
default: "" | ||
verbose: | ||
description: 'Verbose output' | ||
description: "Verbose output" | ||
required: false | ||
default: true | ||
token: | ||
description: 'GitHub token' | ||
description: "GitHub token" | ||
required: true | ||
default: ${{ github.token }} | ||
runs: | ||
using: 'docker' | ||
image: 'docker://ghcr.io/actions/jekyll-build-pages:v1.0.13' | ||
using: "docker" | ||
image: "docker://ghcr.io/actions/jekyll-build-pages:v1.0.13" |
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