single step scp in action
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
63d211e60d
commit
ac9a1f65e6
@ -19,9 +19,12 @@ jobs:
|
|||||||
run: hugo
|
run: hugo
|
||||||
- name: Setup the hostname with the private key that we have
|
- name: Setup the hostname with the private key that we have
|
||||||
run: mkdir -p ~/.ssh/ && ssh-keyscan git.shockrah.xyz >> ~/.ssh/known_hosts
|
run: mkdir -p ~/.ssh/ && ssh-keyscan git.shockrah.xyz >> ~/.ssh/known_hosts
|
||||||
- name: Setup SSH to copy files up to remote webserver
|
- name: SCP Files with marketplace action
|
||||||
uses: webfactory/ssh-agent@v0.9.0
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.PRIVATE_KEY }}
|
host: ${{ secrets.HOST }}
|
||||||
- name: SCP Files to resume web server
|
username: ${{ secrets.USER }}
|
||||||
run: "scp -o UserKnownHostsFile=/dev/null -r public/ $ssh_target:$remote_path"
|
port: ${{ secrets.PORT }}
|
||||||
|
key: ${{ secrets.PRIVATE_KEY }}
|
||||||
|
source: public/
|
||||||
|
target: /opt/nginx/test.shockrah.xyz
|
||||||
|
Loading…
Reference in New Issue
Block a user