dn42-info/deploy.sh
Minecon724 296a5d3429
Some checks failed
/ deploy (push) Failing after 24s
actually fix workflow
2024-10-11 11:26:42 +02:00

19 lines
370 B
Bash

#!/bin/bash
# Change to the directory containing the files (assuming it's named 'dist')
cd dist
# Initialize FTP connection
ftp -n << EOF
open $FTP_SERVER
user $FTP_USER $FTP_PASSWORD
put -r .
put ../geofeed.csv
# Close FTP connection
bye
EOF
# Refresh cache
curl -H "AccessKey: $ACCESS_KEY" "https://api.bunny.net/purge?url=https%3A%2F%2Fdn42.m724.eu&async=false"