.forgejo/workflows/deploy.yml aktualisiert
Some checks failed
Deploy Scoresniper via SFTP / deploy (push) Has been cancelled

This commit is contained in:
potzplitz 2025-05-14 16:42:04 -04:00
parent 403a5c681b
commit f81e50e264

View file

@ -7,7 +7,7 @@ on:
jobs:
deploy:
runs-on: docker
runs-on: ubuntu-latest
steps:
- name: Checkout Code
@ -15,18 +15,18 @@ jobs:
- name: Install lftp
run: |
if command -v sudo > /dev/null; then
sudo apt-get update
sudo apt-get install -y lftp
else
apt-get update
apt-get install -y lftp
fi
apt-get update
apt-get install -y lftp
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
- 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
quit
EOF
EOF