main #2
1 changed files with 12 additions and 4 deletions
|
@ -15,12 +15,20 @@ jobs:
|
|||
|
||||
- name: Install lftp
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y lftp
|
||||
apt-get update
|
||||
apt-get install -y lftp
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
working-directory: ScoreSniper
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
working-directory: ScoreSniper
|
||||
|
||||
- name: Upload via SFTP
|
||||
run: |
|
||||
lftp -u ${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }} sftp://potzplitz.de <<EOF
|
||||
mirror -R --delete ./dist /var/www/html/scoresniper
|
||||
mirror -R --delete ScoreSniper/dist /var/www/html/scoresniper
|
||||
quit
|
||||
EOF
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue