1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2026-06-05 00:16:20 +08:00

测试Javadoc部署

This commit is contained in:
carm
2021-11-23 02:56:11 +08:00
parent 124ee0f9c3
commit f91a2aa198
+20 -10
View File
@@ -29,7 +29,7 @@ jobs:
- name: Copy to Location - name: Copy to Location
run: | run: |
rm -rf docs rm -rf docs
cp -rf target/site/apidocs/. docs cp -vrf target/site/apidocs/. docs
- name: Tidy up - name: Tidy up
id: tidy id: tidy
@@ -42,15 +42,12 @@ jobs:
run: | run: |
echo "modified-count = ${{ steps.tidy.outputs.modified-count }}" echo "modified-count = ${{ steps.tidy.outputs.modified-count }}"
- name: Commit documentation changes - name: Generate the sitemap
run: | id: sitemap
if [[ `git status --porcelain` ]]; then uses: cicirello/generate-sitemap@v1
git config --global user.name '${{ github.repository_owner }}' with:
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com' base-url-path: https://carmjos.github.io/userprefix
git add -A path-to-root: docs
git commit -m "Automated API website updates."
git push
fi
- name: Output stats - name: Output stats
run: | run: |
@@ -58,3 +55,16 @@ jobs:
echo "url-count = ${{ steps.sitemap.outputs.url-count }}" echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
- name: Commit documentation changes
run: |
cd docs
git config --global user.name '${{ github.repository_owner }}'
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
git init
git branch gh-pages
git checkout gh-pages
git log --decorate -- oneline
git add -A
git commit -m "API Document generated."