FILE / actions/git-pages
action.yml
Исходный файл и его история в репозитории.
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: "Upload git-pages site"
|
|
description: "An action that uploads your static site to a git-pages server."
|
|
author: "git-pages contributors"
|
|
inputs:
|
|
site:
|
|
description: "Site URL. Should be either https://domain.tld/ or https://domain.tld/project/."
|
|
required: true
|
|
path:
|
|
description: "Site path. Contents will be available at site URL joined with site path."
|
|
required: false
|
|
default: ""
|
|
server:
|
|
description: "Server hostname. If provided, the TLS connection will use this hostname and not the hostname from the site URL."
|
|
required: false
|
|
default: ""
|
|
password:
|
|
description: "Password for DNS Challenge authorization."
|
|
required: false
|
|
default: ""
|
|
token:
|
|
description: "Token for Forgejo authorization."
|
|
required: false
|
|
default: ""
|
|
source:
|
|
description: "Path to the directory containing the site contents."
|
|
required: true
|
|
default: "_site/"
|
|
runs:
|
|
using: docker
|
|
image: docker://data.forgejo.org/git-pages/git-pages-cli:1.8.2
|
|
args:
|
|
- ${{ inputs.site }}
|
|
# git-pages-cli treats empty values for string options the same as if they weren't specified
|
|
# at all, so it's not necessary to pass any of these conditionally.
|
|
- "--path=${{ inputs.path }}"
|
|
- "--parents"
|
|
- "--server=${{ inputs.server }}"
|
|
- "--password=${{ inputs.password }}"
|
|
- "--token=${{ inputs.token }}"
|
|
- "--upload-dir=${{ inputs.source }}"
|