Make deploy workflow compatible with Gitea Action

This commit is contained in:
2025-05-14 10:11:02 +08:00
parent 01fd4c8798
commit 7ca7c662fb
2 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
name: Deploy to Hostinger
name: Deploy Website
on:
push:
@@ -13,16 +13,16 @@ jobs:
- name: git-checkout
uses: actions/checkout@v4
- name: Set Up Bun
uses: oven-sh/setup-bun@v2
- name: Set Up Node
uses: actions/setup-node@v4
with:
bun-version: latest
node-version: latest
- name: Install all dependencies
run: bun install
run: npm install
- name: Build
run: bun run build
run: npm run build-action
- name: SSH Deploy to Hostinger
uses: easingthemes/ssh-deploy@main

View File

@@ -9,7 +9,7 @@
"scripts": {
"start": "bunx eleventy --serve --quiet",
"build": "bunx eleventy",
"build-ghpages": "bunx eleventy"
"build-action": "npx eleventy"
},
"type": "module",
"devDependencies": {