From c44be89ddc0503a51cceafdc97307b42a2ac5f2e Mon Sep 17 00:00:00 2001 From: ScuroNeko Date: Thu, 21 May 2026 13:33:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20action.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 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 }}"