.forgejo/workflows/deploy.yml aktualisiert
Some checks failed
Deploy Scoresniper via SCP / deploy (push) Has been cancelled
Some checks failed
Deploy Scoresniper via SCP / deploy (push) Has been cancelled
This commit is contained in:
parent
12e9c63043
commit
f7a98df110
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:
|
||||
|
@ -7,20 +7,17 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install lftp
|
||||
- name: Install scp and sshpass
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y lftp
|
||||
apt-get install -y openssh-client sshpass
|
||||
|
||||
- name: Upload project files via SFTP
|
||||
- name: Upload project files via SCP
|
||||
run: |
|
||||
lftp -u ${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }} sftp://potzplitz.de <<EOF
|
||||
mirror -R --delete ./ /var/www/html/scoresniper
|
||||
quit
|
||||
EOF
|
||||
sshpass -p "${{ secrets.SFTP_PASS }}" scp -o StrictHostKeyChecking=no -r ./ ${{ secrets.SFTP_USER }}@potzplitz.de:/var/www/html/scoresniper
|
||||
|
|
Loading…
Reference in a new issue