actually fix workflow
Some checks failed
/ deploy (push) Failing after 24s

This commit is contained in:
Minecon724 2024-10-11 11:26:42 +02:00
parent e032a84575
commit 296a5d3429
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 3 additions and 9 deletions

View file

@ -7,7 +7,7 @@ jobs:
- run: git clone https://git.m724.eu/Minecon724/dn42-info .
- run: npm i
- run: npx parcel build src/index.html
- run: chmod +x deploy.sh && ./deploy.sh
- run: apt install ftp -y && chmod +x deploy.sh && ./deploy.sh
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USER: ${{ secrets.FTP_USER }}

View file

@ -8,14 +8,8 @@ ftp -n << EOF
open $FTP_SERVER
user $FTP_USER $FTP_PASSWORD
# Upload HTML files
for file in *.html; do
put "$file"
done
# Upload geofeed.csv (assuming it's in the parent directory)
cd ..
put geofeed.csv
put -r .
put ../geofeed.csv
# Close FTP connection
bye