Use Node actions for workflow

This commit is contained in:
Leilukin 2025-05-13 01:13:43 +08:00
parent b07c4374ff
commit 94c98a89b7
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -11,7 +11,8 @@
"start-11ty": "bun run build-11ty --serve --quiet", "start-11ty": "bun run build-11ty --serve --quiet",
"create-search-index": "bunx -y pagefind --site _site", "create-search-index": "bunx -y pagefind --site _site",
"build": "bun build-11ty --quiet && bun create-search-index", "build": "bun build-11ty --quiet && bun create-search-index",
"start": "bun run build --serve" "start": "bun run build --serve",
"build-action": "npx @11ty/eleventy --quiet && npx -y pagefind --site _site"
}, },
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {