chore: deploy to uberspace

Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
Filipe Medeiros 2023-10-30 19:29:34 +01:00
parent eecc93ae6e
commit 1d3f8d37c4
Signed by: filipe
GPG key ID: 9533BD5467CC1E78
5 changed files with 13 additions and 2 deletions

View file

@ -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",

View 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

View file

@ -0,0 +1,3 @@
cd html
mv dist/* .
rm -r dist

View file

@ -0,0 +1,2 @@
cd html
rm -r *

View file

@ -0,0 +1,3 @@
cd html
put -r dist
bye