From fe359810631efab25a44d8d9d8934861c062b77b Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 22 Sep 2024 22:21:19 +0100 Subject: [PATCH] feat: basic action to copy files across --- deploy_user/action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 deploy_user/action.yml diff --git a/deploy_user/action.yml b/deploy_user/action.yml new file mode 100644 index 0000000..ded468b --- /dev/null +++ b/deploy_user/action.yml @@ -0,0 +1,26 @@ +name: 'Deploy to Skynet - User Edition' +description: 'Deploy to your own public_html ' +inputs: + ssh_key: + description: 'Pass in secrets.SSH_KEY' + required: true + username: + description: 'Pass in secrets.USERNAME' + required: true + folder: + description: 'Folder to upload, normally build' + required: true + destination: + description: 'location within public_html to deploy to' + required: false + default: "" +runs: + using: "composite" + steps: + - name: "Pull LFS objects" + shell: bash + run: | + # jank I know + echo "${{ inputs.ssh_key }}" > tmp.key + chmod 600 tmp.key + scp -v -i tmp.key -r ${{ inputs.folder }}/* ${{ inputs.username }}@skynet.skynet.ie:/home/${{ inputs.username }}/public_html/${{ inputs.destination }}