forked from Skynet/actions
feat: the action does a lot more heavy lifting now
This commit is contained in:
parent
fe35981063
commit
3981f79461
1 changed files with 12 additions and 1 deletions
|
@ -17,10 +17,21 @@ inputs:
|
|||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: "Pull LFS objects"
|
||||
- name: "Set SSH key"
|
||||
shell: bash
|
||||
run: |
|
||||
# jank I know
|
||||
echo "${{ inputs.ssh_key }}" > tmp.key
|
||||
chmod 600 tmp.key
|
||||
- name: "Ensure public_html exists"
|
||||
shell: bash
|
||||
run: |
|
||||
ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p -f ~/public_html && chmod 711 ~ && chmod -R 755 ~/public_html"
|
||||
- name: "Ensure destination exists"
|
||||
shell: bash
|
||||
run: |
|
||||
ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p -f ~/public_html/${{ inputs.destination }}"
|
||||
- name: "Copy files across"
|
||||
shell: bash
|
||||
run: |
|
||||
scp -v -i tmp.key -r ${{ inputs.folder }}/* ${{ inputs.username }}@skynet.skynet.ie:/home/${{ inputs.username }}/public_html/${{ inputs.destination }}
|
||||
|
|
Loading…
Reference in a new issue