From 2bfeb7a1948af16bf8d2328b9163591c9b49e464 Mon Sep 17 00:00:00 2001 From: shalousun <836575280@qq.com> Date: Sun, 12 Jul 2026 09:27:42 +0800 Subject: [PATCH] feat: change build-and-run-example-project.yml feat: change default.json fix: include maven-plugin JAR in artifact upload for cross-job use - Upload plugin artifact now captures both smart-doc dependency (com/ly/smart-doc) and the plugin itself (com/github/shalousun/smart-doc-maven-plugin) - Update downstream move steps to rsync full artifacts tree to ~/.m2/repository/ instead of only com/ly/smart-doc feat: change default.json feat: change build-and-run-example-project.yml --- .../build-and-run-example-project.yml | 18 +++++++++--------- src/main/resources/default.json | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-run-example-project.yml b/.github/workflows/build-and-run-example-project.yml index dba105ab..0d37e816 100644 --- a/.github/workflows/build-and-run-example-project.yml +++ b/.github/workflows/build-and-run-example-project.yml @@ -46,7 +46,7 @@ jobs: uses: actions/upload-artifact@v6 with: name: smart-doc-maven-jar - path: ~/.m2/repository/com/ly/smart-doc + path: ~/.m2/repository/com/github/shalousun if-no-files-found: error - name: Upload Build Log @@ -87,11 +87,11 @@ jobs: - name: Move Files to Local Maven Repository run: | - mkdir -p ~/.m2/repository/com/ly/smart-doc + mkdir -p ~/.m2/repository/com/github/shalousun echo "Overwriting target directory with new artifacts:" - rsync -av --delete ./artifacts/ ~/.m2/repository/com/ly/smart-doc/ + rsync -av --delete ./artifacts/ ~/.m2/repository/com/github/shalousun/ echo "Listing files in target directory:" - ls -lh ~/.m2/repository/com/ly/smart-doc + ls -lh ~/.m2/repository/com/github/shalousun - name: Update Version in pom.xml run: | @@ -110,7 +110,7 @@ jobs: uses: actions/upload-artifact@v6 with: name: smart-doc-maven-plugin-jar - path: ~/.m2/repository/com/ly/smart-doc + path: ~/.m2/repository/com/github/shalousun if-no-files-found: error - name: Upload Plugin Build Log @@ -154,11 +154,11 @@ jobs: - name: Move Files to Local Maven Repository run: | - mkdir -p ~/.m2/repository/com/ly/smart-doc + mkdir -p ~/.m2/repository/com/github/shalousun echo "Overwriting target directory with new artifacts:" - rsync -av --delete ./artifacts/ ~/.m2/repository/com/ly/smart-doc/ + rsync -av --delete ./artifacts/ ~/.m2/repository/com/github/shalousun/ echo "Listing files in target directory:" - ls -lh ~/.m2/repository/com/ly/smart-doc + ls -lh ~/.m2/repository/com/github/shalousun - name: Update Smart-Doc Version in pom.xml run: | @@ -285,7 +285,7 @@ jobs: - name: Move Files to Local Maven Repository run: | if [[ "${{ matrix.os }}" == "ubuntu-latest" || "${{ matrix.os }}" == "macos-latest" ]]; then - TARGET_DIR=~/.m2/repository/com/ly/smart-doc/ + TARGET_DIR=~/.m2/repository/com/github/shalousun/ mkdir -p "$TARGET_DIR" || echo "Directory already exists" rsync -av --delete ./artifacts/ "$TARGET_DIR" elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then diff --git a/src/main/resources/default.json b/src/main/resources/default.json index 13f908a3..24f98c5a 100644 --- a/src/main/resources/default.json +++ b/src/main/resources/default.json @@ -2,9 +2,9 @@ "serverUrl": "http://127.0.0.1", "isStrict": false, "allInOne": true, - "outPath": "D://md2", + "outPath": "md2", "coverOld": true, - "allInOneDocFileName": "demoProject.html", + "allInOneDocFileName": "demo.html", "packageFilters": "", "md5EncryptedHtmlName": false, "projectName": "smart-doc",