From 0f2536f5728a4aebf05fd94d47eadd07153d4581 Mon Sep 17 00:00:00 2001 From: cxykevin Date: Fri, 24 May 2024 22:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/build.yam?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3c0deee..1b0a83f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -21,20 +21,25 @@ jobs: - name: Prepare Lftp run: | apt-get install lftp -y + - name: Checkout + uses: http://git.hmtsai.cn/actions/checkout@v4 - name: Prepare node run: | - apt-get install nodejs -y - - name: Checkout - uses: http://git.hmtsai.cn/actions/checkout@v4 - - name: Prepare NPM source + git clone https://git.hmtsai.cn/cxykevin/study-area-home-action-deps + mv study-area-home-action-deps/node-$(uname -m).tar.xz study-area-home-action-deps/node.tar.xz + tar xvJf study-area-home-action-deps/node.tar.xz + - name: Check node run: | - npm config set registry https://registry.npmmirror.com - - name: npm install - run: | - npm install - - name: Build - run: | - npm run build + ls study-area-home-action-deps + # - name: Prepare NPM source + # run: | + # npm config set registry https://registry.npmmirror.com + # - name: npm install + # run: | + # npm install + # - name: Build + # run: | + # npm run build # - name: Add permission # run: chmod +x study-area-action-deps/mdbook-linux-$(uname -m) # - name: Build mdbook