Files
configure-pages/action.yml

28 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-13 13:40:23 -07:00
name: "Configure Pages"
description: "A GitHub Action to enable Pages, extract various metadata about a site, and configure some supported static site generators."
2022-08-05 13:28:40 -05:00
author: "GitHub"
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:
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 "/"'