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 "