commit c44be89ddc0503a51cceafdc97307b42a2ac5f2e Author: ScuroNeko Date: Thu May 21 13:33:53 2026 +0300 Добавить action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..db9c555 --- /dev/null +++ b/action.yml @@ -0,0 +1,40 @@ +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 }}"