old method of doing ssh setup and cop[ying of files
Some checks failed
Build and Deploy Resume Site / setup-website-content (push) Failing after 5s
Some checks failed
Build and Deploy Resume Site / setup-website-content (push) Failing after 5s
This commit is contained in:
parent
7f082cde34
commit
1a3cbfa43b
@ -17,11 +17,12 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build website content
|
- name: Build website content
|
||||||
run: hugo
|
run: hugo
|
||||||
- name: SCP Files with marketplace action
|
- name: SSH Setup and Copy
|
||||||
uses: appleboy/scp-action@v0.1.7
|
run: |
|
||||||
with:
|
eval $(ssh-agent -s) \
|
||||||
host: shockrah.xyz
|
echo "${{ secrets.PRIVATE_KEY }}" | ssh-add - > /dev/null \
|
||||||
username: ${{ secrets.USER }}
|
mkdir -p ~/.ssh \
|
||||||
key: ${{ secrets.PRIVATE_KEY }}
|
chmod 0700 ~/.ssh \
|
||||||
source: public/
|
scp -o UserKnownHostsFile=/dev/null -r public/ $ssh_target:$remote_path
|
||||||
target: /opt/nginx/test.shockrah.xyz
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user