feat(ci): use rsync instead of lftp
Some checks failed
Deploy to SFTP Server / build (push) Failing after 8m57s
Some checks failed
Deploy to SFTP Server / build (push) Failing after 8m57s
This commit is contained in:
parent
c513605de6
commit
2df825187e
26
.github/workflows/default.yaml
vendored
26
.github/workflows/default.yaml
vendored
@ -55,19 +55,15 @@ jobs:
|
|||||||
# Install dependencies, build, and generate site output
|
# Install dependencies, build, and generate site output
|
||||||
pnpm i && pnpm build
|
pnpm i && pnpm build
|
||||||
|
|
||||||
- name: 🚀 Deploy files via SFTP
|
- name: 🔑 Set up SSH Key
|
||||||
continue-on-error: true
|
run: |
|
||||||
uses: pressidium/lftp-mirror-action@v1
|
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
|
||||||
with:
|
chmod 600 /tmp/id_rsa
|
||||||
host: ${{ secrets.FTP_HOST }}
|
ssh-add /tmp/id_rsa
|
||||||
port: ${{ secrets.FTP_PORT || 21 }}
|
env:
|
||||||
user: ${{ secrets.FTP_USERNAME }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
pass: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
onlyNewer: true
|
|
||||||
restoreMTime: false
|
|
||||||
parallel: '3'
|
|
||||||
settings: 'sftp:auto-confirm=yes'
|
|
||||||
localDir: 'dist'
|
|
||||||
remoteDir: '/share/new-website'
|
|
||||||
options: '--verbose'
|
|
||||||
|
|
||||||
|
|
||||||
|
- name: 🚀 Deploy Changed Files via rsync
|
||||||
|
run: |
|
||||||
|
rsync -avz --delete -e "ssh -p ${SSH_PORT}" ./dist/ ${SSH_USER}@${SSH_HOST}:${REMOTE_DIR}
|
||||||
|
3
.prettierrc
Normal file
3
.prettierrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"bracketSameLine": true
|
||||||
|
}
|
@ -5,6 +5,8 @@ RUN apk add --no-cache \
|
|||||||
git \
|
git \
|
||||||
git-lfs \
|
git-lfs \
|
||||||
tar \
|
tar \
|
||||||
|
rsync \
|
||||||
|
openssh \
|
||||||
bash
|
bash
|
||||||
|
|
||||||
# Install PNPM globally
|
# Install PNPM globally
|
||||||
|
@ -70,23 +70,6 @@ import "./global.css";
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</head>
|
|
||||||
<body class="bg-dark text-neutral p-2 flex flex-col gap-4">
|
|
||||||
<header class="sticky top-0 z-2 bg-dark">
|
|
||||||
<Nav />
|
|
||||||
</header>
|
|
||||||
<main id="main-content" class="flex flex-col gap-4">
|
|
||||||
<slot />
|
|
||||||
</main>
|
|
||||||
<footer class="px-4 flex gap-8 mb-4">
|
|
||||||
<LanguagePicker />
|
|
||||||
<a
|
|
||||||
href="https://git.max-richter.dev/max/website"
|
|
||||||
class="flex gap-2 items-center"
|
|
||||||
>
|
|
||||||
<span class="i-tabler-brand-git"></span>{t("website-source")}
|
|
||||||
</a>
|
|
||||||
</footer>
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
@ -96,8 +79,8 @@ import "./global.css";
|
|||||||
.dark header::after {
|
.dark header::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 15px;
|
width: 10px;
|
||||||
height: 15px;
|
height: 10px;
|
||||||
color: red;
|
color: red;
|
||||||
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 249 249' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M248.5 0H0V249C0.268799 111.435 111.423 0 248.5 0Z' fill='%2316161e'/%3E%3C/svg%3E");
|
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 249 249' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M248.5 0H0V249C0.268799 111.435 111.423 0 248.5 0Z' fill='%2316161e'/%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
@ -114,6 +97,22 @@ import "./global.css";
|
|||||||
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 249 249' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M248.5 0H0V249C0.268799 111.435 111.423 0 248.5 0Z' fill='%2316161e'/%3E%3C/svg%3E");
|
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 249 249' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M248.5 0H0V249C0.268799 111.435 111.423 0 248.5 0Z' fill='%2316161e'/%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
</head>
|
||||||
|
<body class="bg-dark text-neutral p-2 flex flex-col gap-4">
|
||||||
|
<header class="sticky top-0 z-2 bg-dark">
|
||||||
|
<Nav />
|
||||||
|
</header>
|
||||||
|
<main id="main-content" class="flex flex-col gap-4">
|
||||||
|
<slot />
|
||||||
|
</main>
|
||||||
|
<footer class="px-4 flex gap-8 mb-4">
|
||||||
|
<LanguagePicker />
|
||||||
|
<a
|
||||||
|
href="https://git.max-richter.dev/max/website"
|
||||||
|
class="flex gap-2 items-center">
|
||||||
|
<span class="i-tabler-brand-git"></span>{t("website-source")}
|
||||||
|
</a>
|
||||||
|
</footer>
|
||||||
<script is:inline>
|
<script is:inline>
|
||||||
(function () {
|
(function () {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user