diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..fd9597a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 + " diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ed03c65..bb90acf 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -28,6 +28,7 @@ const RootLayout = ({ children }: LayoutProps<"/">) => { diff --git a/src/widgets/header/ui/Header.tsx b/src/widgets/header/ui/Header.tsx index 0315018..8edc059 100644 --- a/src/widgets/header/ui/Header.tsx +++ b/src/widgets/header/ui/Header.tsx @@ -38,7 +38,7 @@ const Header = () => {
- Autli + Autli_test
@@ -86,4 +86,4 @@ const Header = () => { ); }; -export default Header; \ No newline at end of file +export default Header;