From 1d633d545f81f6703340d3184f5d15d4fefdbeef Mon Sep 17 00:00:00 2001 From: cxykevin Date: Sat, 29 Jun 2024 19:27:04 +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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c6ef13c..7a26ca5 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -42,6 +42,24 @@ jobs: run: chmod +x study-area-action-deps/mdbook-linux-$(uname -m) - name: Build mdbook 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 run: ls book - name: Upload