1
0
Fork 0

更新 .gitea/workflows/build.yaml

This commit is contained in:
cxykevin 2024-05-24 22:24:00 +08:00
parent 2b72aa0b8e
commit 0f2536f572
1 changed files with 16 additions and 11 deletions

View File

@ -21,20 +21,25 @@ jobs:
- name: Prepare Lftp - name: Prepare Lftp
run: | run: |
apt-get install lftp -y apt-get install lftp -y
- name: Prepare node
run: |
apt-get install nodejs -y
- name: Checkout - name: Checkout
uses: http://git.hmtsai.cn/actions/checkout@v4 uses: http://git.hmtsai.cn/actions/checkout@v4
- name: Prepare NPM source - name: Prepare node
run: | run: |
npm config set registry https://registry.npmmirror.com git clone https://git.hmtsai.cn/cxykevin/study-area-home-action-deps
- name: npm install 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: | run: |
npm install ls study-area-home-action-deps
- name: Build # - name: Prepare NPM source
run: | # run: |
npm run build # npm config set registry https://registry.npmmirror.com
# - name: npm install
# run: |
# npm install
# - name: Build
# run: |
# npm run build
# - name: Add permission # - name: Add permission
# run: chmod +x study-area-action-deps/mdbook-linux-$(uname -m) # run: chmod +x study-area-action-deps/mdbook-linux-$(uname -m)
# - name: Build mdbook # - name: Build mdbook