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