chore: deploy to uberspace
Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
parent
eecc93ae6e
commit
1d3f8d37c4
|
@ -5,8 +5,8 @@
|
|||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
"build": "astro build && echo filipesm.eu > ./dist/CNAME",
|
||||
"deploy": "pnpm build && surge dist",
|
||||
"build": "astro build",
|
||||
"deploy": "pnpm build && sh scripts/deploy_to_uberspace.sh",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro",
|
||||
"format": "prettier . -w --config ./.prettierrc",
|
||||
|
|
3
frontend/scripts/deploy_to_uberspace.sh
Normal file
3
frontend/scripts/deploy_to_uberspace.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
ssh -i ~/.ssh/uberspace_filipesm uberspace < scripts/pre_upload_commands.sh
|
||||
sftp -i ~/.ssh/uberspace_filipesm -b scripts/sftp_commands.sh uberspace
|
||||
ssh -i ~/.ssh/uberspace_filipesm uberspace < scripts/post_upload_commands.sh
|
3
frontend/scripts/post_upload_commands.sh
Normal file
3
frontend/scripts/post_upload_commands.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd html
|
||||
mv dist/* .
|
||||
rm -r dist
|
2
frontend/scripts/pre_upload_commands.sh
Normal file
2
frontend/scripts/pre_upload_commands.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
cd html
|
||||
rm -r *
|
3
frontend/scripts/sftp_commands.sh
Normal file
3
frontend/scripts/sftp_commands.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd html
|
||||
put -r dist
|
||||
bye
|
Loading…
Reference in a new issue