.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
403a5c681b
commit
f81e50e264
1 changed files with 9 additions and 9 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
|
||||||
|
@ -15,18 +15,18 @@ jobs:
|
||||||
|
|
||||||
- name: Install lftp
|
- name: Install lftp
|
||||||
run: |
|
run: |
|
||||||
if command -v sudo > /dev/null; then
|
apt-get update
|
||||||
sudo apt-get update
|
apt-get install -y lftp
|
||||||
sudo apt-get install -y lftp
|
|
||||||
else
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y lftp
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
- name: Upload via SFTP
|
- 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 ./dist /var/www/html/scoresniper
|
mirror -R --delete ./dist /var/www/html/scoresniper
|
||||||
quit
|
quit
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue