Compare commits

..

No commits in common. "3981f79461cbf9c73e43ee2913061b4a1d9e08c6" and "8d307a881dd2dba36e9ee536fd0fd45da5048e3a" have entirely different histories.

2 changed files with 1 additions and 38 deletions

View file

@ -1,37 +0,0 @@
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: "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 }}

View file

@ -1,4 +1,4 @@
name: 'Get LFS objects in teh git repo' name: 'Deploy to Skynet'
description: 'Pull LFS objects, its borked otherwise on gitea/forgejo' description: 'Pull LFS objects, its borked otherwise on gitea/forgejo'
inputs: inputs:
repository: repository: