浏览代码

activate cache

mitm001 5 年之前
父节点
当前提交
f10e3f707e
共有 3 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      .github/workflows/main.yml
  2. 2 0
      transition-docs/assets/attachments/main.yml
  3. 2 0
      transition-docs/pages/antora_setup.adoc

+ 1 - 1
.github/workflows/main.yml

@@ -100,7 +100,7 @@ jobs:
         author_email: [email protected]
         message: "Commit files for CI workflow"
         # Commits these files to root if and only if there are changes.
-        add: "package-lock.json package.json"
+        add: "package-lock.json package.json ./.cache/antora/*"
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 

+ 2 - 0
transition-docs/assets/attachments/main.yml

@@ -117,5 +117,7 @@ jobs:
         github_token: ${{ secrets.GITHUB_TOKEN }}
         # Commits these files to gh-pages if and only if there are changes.
         publish_dir: ./build/site
+        # Update only changed files in gh-pages
+        keep_files: true
         # Insert CNAME for repository.
         cname: wiki.jmonkeyengine.org

+ 2 - 0
transition-docs/pages/antora_setup.adoc

@@ -253,6 +253,8 @@ jobs:
 #        github_token: ${{ secrets.GITHUB_TOKEN }}
         # Commits these files to gh-pages if and only if there are changes.
 #        publish_dir: ./build/site
+        # Update only changed files in gh-pages
+#        keep_files: true
         # Insert CNAME for repository.
 #        cname: wiki.jmonkeyengine.org
 ----