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: git clone https://git.m724.eu/Minecon724/dn42-info .
|
||||||
- run: npm i
|
- run: npm i
|
||||||
- run: npx parcel build src/index.html
|
- 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:
|
env:
|
||||||
FTP_SERVER: ${{ secrets.FTP_SERVER }}
|
FTP_SERVER: ${{ secrets.FTP_SERVER }}
|
||||||
FTP_USER: ${{ secrets.FTP_USER }}
|
FTP_USER: ${{ secrets.FTP_USER }}
|
||||||
|
|
10
deploy.sh
10
deploy.sh
|
@ -8,14 +8,8 @@ ftp -n << EOF
|
||||||
open $FTP_SERVER
|
open $FTP_SERVER
|
||||||
user $FTP_USER $FTP_PASSWORD
|
user $FTP_USER $FTP_PASSWORD
|
||||||
|
|
||||||
# Upload HTML files
|
put -r .
|
||||||
for file in *.html; do
|
put ../geofeed.csv
|
||||||
put "$file"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Upload geofeed.csv (assuming it's in the parent directory)
|
|
||||||
cd ..
|
|
||||||
put geofeed.csv
|
|
||||||
|
|
||||||
# Close FTP connection
|
# Close FTP connection
|
||||||
bye
|
bye
|
||||||
|
|
Loading…
Reference in a new issue