test auto deploy

This commit is contained in:
Nikita 2026-09-23 17:07:20 +05:00
parent 71c8dce144
commit 0226c367c0
3 changed files with 51 additions and 2 deletions

48
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,48 @@
name: Deploy to Timeweb
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 12.3.4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Install lftp
run: sudo apt-get update && sudo apt-get install -y lftp
- name: Deploy to Timeweb
env:
TIMEWEB_HOST: ${{ secrets.TIMEWEB_HOST }}
TIMEWEB_USER: ${{ secrets.TIMEWEB_USER }}
TIMEWEB_PASSWORD: ${{ secrets.TIMEWEB_PASSWORD }}
run: |
lftp -u "$TIMEWEB_USER","$TIMEWEB_PASSWORD" \
sftp://"$TIMEWEB_HOST":22 \
-e "
set sftp:auto-confirm yes;
mirror --reverse --verbose ./out/ /home/c/cb52733/Autli/public_html/;
quit
"

View file

@ -28,6 +28,7 @@ const RootLayout = ({ children }: LayoutProps<"/">) => {
<html
lang="en"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
suppressHydrationWarning
>
<body className="min-h-full flex flex-col">
<Preloader />

View file

@ -38,7 +38,7 @@ const Header = () => {
<div className="cont-header">
<div className={styles.left}>
<Link href="/" className={styles.logo} onClick={close}>
Autli
Autli_test
</Link>
</div>
@ -86,4 +86,4 @@ const Header = () => {
);
};
export default Header;
export default Header;