This commit is contained in:
parent
e032a84575
commit
296a5d3429
2 changed files with 3 additions and 9 deletions
|
@ -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 }}
|
||||
|
|
10
deploy.sh
10
deploy.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue