forked from study-area-cn/study-area-cn.old
更新 .gitea/workflows/build.yaml
This commit is contained in:
parent
d4ed7b0a7a
commit
1d633d545f
|
@ -42,6 +42,24 @@ jobs:
|
||||||
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
|
||||||
run: study-area-action-deps/mdbook-linux-$(uname -m) build
|
run: study-area-action-deps/mdbook-linux-$(uname -m) build
|
||||||
|
- name: Cache mapbook
|
||||||
|
uses: https://git.hmtsai.cn/actions/cache@v4
|
||||||
|
id: cache-mapbook
|
||||||
|
env:
|
||||||
|
cache-name: cache-mapbook
|
||||||
|
with:
|
||||||
|
key: mapbook
|
||||||
|
path: |
|
||||||
|
mapbook
|
||||||
|
- name: Get mapbook
|
||||||
|
if: ${{ steps.cache-mapbook.outputs.cache-hit != 'true' }}
|
||||||
|
run: |
|
||||||
|
git clone https://git.hmtsai.cn/cxykevin/mapbook
|
||||||
|
echo "Check..."
|
||||||
|
ls mapbook
|
||||||
|
- name: Build sitemap
|
||||||
|
run: |
|
||||||
|
python mapbook/build.py
|
||||||
- name: Check book
|
- name: Check book
|
||||||
run: ls book
|
run: ls book
|
||||||
- name: Upload
|
- name: Upload
|
||||||
|
|
Loading…
Reference in New Issue