.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:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
|
@ -18,17 +18,9 @@ jobs:
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y lftp
|
apt-get install -y lftp
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Upload project files via SFTP
|
||||||
run: npm install
|
|
||||||
working-directory: ScoreSniper
|
|
||||||
|
|
||||||
- name: Build project
|
|
||||||
run: npm run build
|
|
||||||
working-directory: ScoreSniper
|
|
||||||
|
|
||||||
- name: Upload via SFTP
|
|
||||||
run: |
|
run: |
|
||||||
lftp -u ${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }} sftp://potzplitz.de <<EOF
|
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
|
quit
|
||||||
EOF
|
EOF
|
Loading…
Reference in a new issue