Files
configure-pages/action.yml
T

27 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-13 13:40:23 -07:00
name: "Configure Pages"
description: "An action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows."
2022-06-07 11:26:59 -07:00
runs:
2022-07-13 13:40:23 -07:00
using: "node16"
main: "dist/index.js"
2022-06-07 22:21:50 -07:00
inputs:
2022-07-13 13:40:23 -07:00
static_site_generator:
description: "Optional static site generator to attempt to configure (nuxt, next or gatsby)"
required: false
2022-06-07 22:21:50 -07:00
token:
2022-07-13 13:40:23 -07:00
description: "GitHub token"
2022-06-07 22:21:50 -07:00
default: ${{ github.token }}
required: true
enablement:
description: "Should a Pages site be enabled for the repository if not so already?"
default: "true"
required: false
2022-06-07 11:26:59 -07:00
outputs:
base_url:
2022-06-08 12:02:17 -05:00
description: 'GitHub Pages site full base URL. Examples: "https://octocat.github.io/my-repo/", "https://octocat.github.io/", "https://www.example.com/"'
origin:
description: 'GitHub Pages site origin. Examples: "https://octocat.github.io", "https://www.example.com"'
host:
description: 'GitHub Pages site host. Examples: "octocat.github.io", "www.example.com"'
base_path:
description: 'GitHub Pages site full base path. Examples: "/my-repo/" or "/"'