diff --git a/.gitea/workflows/hostinger.yml b/.gitea/workflows/hostinger.yml new file mode 100644 index 00000000..b662eccc --- /dev/null +++ b/.gitea/workflows/hostinger.yml @@ -0,0 +1,37 @@ +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: "/__Source/, /node_modules/, /host/" \ No newline at end of file