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 }}