.forgejo/workflows/deploy.yml aktualisiert
Some checks failed
Deploy Scoresniper via SFTP / deploy (push) Has been cancelled
Some checks failed
Deploy Scoresniper via SFTP / deploy (push) Has been cancelled
This commit is contained in:
parent
2bc6fad8ae
commit
0d2b03d640
1 changed files with 5 additions and 13 deletions
|
@ -7,7 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
|
@ -16,19 +16,11 @@ jobs:
|
|||
- name: Install lftp
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y lftp
|
||||
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
|
||||
- name: Upload project files via SFTP
|
||||
run: |
|
||||
lftp -u ${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }} sftp://potzplitz.de <<EOF
|
||||
mirror -R --delete ScoreSniper/dist /var/www/html/scoresniper
|
||||
mirror -R --delete ./ /var/www/html/scoresniper
|
||||
quit
|
||||
EOF
|
||||
EOF
|
Loading…
Reference in a new issue