Compare commits
16 commits
Author | SHA1 | Date | |
---|---|---|---|
4e36aa6c37 | |||
338332604f | |||
2c1db8b6c2 | |||
658da85c6c | |||
206c36f17f | |||
f7a98df110 | |||
12e9c63043 | |||
0d2b03d640 | |||
2bc6fad8ae | |||
45929d86b7 | |||
f81e50e264 | |||
403a5c681b | |||
b8cee04096 | |||
258ba7ba3a | |||
305671a842 | |||
9481ab911d |
1 changed files with 6 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Deploy Scoresniper via SFTP
|
||||
name: Deploy Scoresniper via SCP
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -13,14 +13,11 @@ jobs:
|
|||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install lftp
|
||||
- name: Install scp and sshpass
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y lftp
|
||||
apt-get update
|
||||
apt-get install -y openssh-client sshpass
|
||||
|
||||
- name: Upload via SFTP
|
||||
- name: Upload project files via SCP
|
||||
run: |
|
||||
lftp -u ${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }} sftp://potzplitz.de <<EOF
|
||||
mirror -R --delete ./dist /var/www/html/scoresniper
|
||||
quit
|
||||
EOF
|
||||
sshpass -p "${{ secrets.SFTP_PASS }}" scp -o StrictHostKeyChecking=no -r $(pwd) ${{ secrets.SFTP_USER }}@ssh.potzplitz.de:/var/www/html/scoresniper_dev
|
||||
|
|
Loading…
Reference in a new issue