test auto deploy
This commit is contained in:
parent
71c8dce144
commit
0226c367c0
3 changed files with 51 additions and 2 deletions
48
.github/workflows/deploy.yml
vendored
Normal file
48
.github/workflows/deploy.yml
vendored
Normal 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
|
||||||
|
"
|
||||||
|
|
@ -28,6 +28,7 @@ const RootLayout = ({ children }: LayoutProps<"/">) => {
|
||||||
<html
|
<html
|
||||||
lang="en"
|
lang="en"
|
||||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||||
|
suppressHydrationWarning
|
||||||
>
|
>
|
||||||
<body className="min-h-full flex flex-col">
|
<body className="min-h-full flex flex-col">
|
||||||
<Preloader />
|
<Preloader />
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ const Header = () => {
|
||||||
<div className="cont-header">
|
<div className="cont-header">
|
||||||
<div className={styles.left}>
|
<div className={styles.left}>
|
||||||
<Link href="/" className={styles.logo} onClick={close}>
|
<Link href="/" className={styles.logo} onClick={close}>
|
||||||
Autli
|
Autli_test
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -86,4 +86,4 @@ const Header = () => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Header;
|
export default Header;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue