Helen Chong cf279c3b26
All checks were successful
Deploy to Hostinger / Build and Push (push) Successful in 49s
Fix Remote Port key in workflow
2025-04-21 19:34:43 +08:00

37 lines
879 B
YAML

name: Deploy to Hostinger
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
uses: actions/checkout@v4
- name: Set Up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install all dependencies
run: bun install
- name: Build
run: bun run build
- name: SSH Deploy to Hostinger
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.HOSTINGER_SSH_PRIVATE_KEY }}
ARGS: "-azvc -i"
SOURCE: "_site/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
REMOTE_PORT: "65002"
EXCLUDE: "/node_modules/, /host/"