2023-10-17 15:49:51 +02:00
|
|
|
name: 'Deploy to Pages'
|
|
|
|
description: 'Deploy files to static html server via ssh'
|
|
|
|
author: 'Maximilian Keßler'
|
|
|
|
inputs:
|
|
|
|
host:
|
|
|
|
description: >
|
|
|
|
Server to deploy to.
|
|
|
|
The action will ssh to this endpoint to try to deploy files.
|
2023-10-17 15:50:52 +02:00
|
|
|
default: abstractnonsen.se
|
2023-10-17 15:49:51 +02:00
|
|
|
host-user:
|
|
|
|
description: >
|
|
|
|
User used for host authentication.
|
|
|
|
default: pages
|
|
|
|
hostkey:
|
|
|
|
description: >
|
|
|
|
SSH host key fingerprint of the specified host, including the key type.
|
|
|
|
If this does not match the host key fingerprint upon invocation of ssh,
|
|
|
|
the action will fail
|
|
|
|
default: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B
|
|
|
|
ssh-key:
|
|
|
|
description: >
|
|
|
|
SSH key used to authenticate to host.
|
|
|
|
default: ${{ secrets.pages_ssh_key }}
|
|
|
|
directory:
|
|
|
|
description: >
|
|
|
|
Directory to deploy.
|
|
|
|
default: pages
|
|
|
|
index:
|
|
|
|
description: >
|
|
|
|
Whether to create an index.html file recursively listing the directory
|
|
|
|
default: true
|
|
|
|
index-title:
|
|
|
|
description: >
|
|
|
|
Title that will be displayed in the index.html
|
|
|
|
default: ${{ github.repository }}
|
2023-10-17 15:54:58 +02:00
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- shell: bash
|
|
|
|
run: |
|
|
|
|
"${GITHUB_ACTION_PATH}/action.sh"
|
|
|
|
env:
|
|
|
|
INPUT_HOST: ${{ inputs.host }}
|
|
|
|
INPUT_HOST_USER: ${{ inputs.host-user }}
|
|
|
|
INPUT_HOST_KEY: ${{ inputs.hostkey }}
|
|
|
|
INPUT_SSH_KEY: ${{ inputs.ssh-key }}
|
|
|
|
INPUT_DIRECTORY: ${{ inputs.directory }}
|
|
|
|
INPUT_INDEX: ${{ inputs.index }}
|
|
|
|
INPUT_INDEX_TITLE: ${{ inputs.index-title }}
|