From 94c98a89b79285891c9f86295f8ea3c99767f584 Mon Sep 17 00:00:00 2001 From: Leilukin Date: Tue, 13 May 2025 01:13:43 +0800 Subject: [PATCH] Use Node actions for workflow --- .github/workflows/hostinger.yml | 10 +++++----- package.json | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/hostinger.yml b/.github/workflows/hostinger.yml index ed20e9e0..877f4f36 100644 --- a/.github/workflows/hostinger.yml +++ b/.github/workflows/hostinger.yml @@ -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 diff --git a/package.json b/package.json index e87d2308..f036920f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "start-11ty": "bun run build-11ty --serve --quiet", "create-search-index": "bunx -y pagefind --site _site", "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", "devDependencies": {