From ac475f5b237e316b35a480c140bc51aa688b4271 Mon Sep 17 00:00:00 2001 From: mozzie Date: Tue, 4 Jun 2024 13:17:39 +0800 Subject: [PATCH] 1 --- .gitea/workflows/build.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f458285a..4e004979 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -8,32 +8,25 @@ on: jobs: build: runs-on: ubuntu-latest + container: + image: node:18 + options: --volume /www/wwwroot/caddy/html/:/public steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '18' # or specify the version you need + - name: Install pnpm + run: npm i -g pnpm hexo - # - name: Install pnpm - # run: npm i -g pnpm hexo - - # - name: Install dependencies - # run: pnpm install + - name: Install dependencies + run: pnpm install - # - name: hexo clean - # run: hexo cl + - name: hexo clean + run: hexo cl - # - name: hexo generate - # run: hexo g + - name: hexo generate + run: hexo g - # - name: build algolia search index - # run: pnpm run search - - name: move dist assets to host - run: ls - - - name: move dist assets to host - run: pwd \ No newline at end of file + - name: build algolia search index + run: pnpm run search \ No newline at end of file