1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2024-09-19 20:15:47 +00:00

测试Javadoc部署

This commit is contained in:
carm 2021-11-23 02:56:11 +08:00
parent 124ee0f9c3
commit f91a2aa198

View File

@ -29,7 +29,7 @@ jobs:
- name: Copy to Location
run: |
rm -rf docs
cp -rf target/site/apidocs/. docs
cp -vrf target/site/apidocs/. docs
- name: Tidy up
id: tidy
@ -42,15 +42,12 @@ jobs:
run: |
echo "modified-count = ${{ steps.tidy.outputs.modified-count }}"
- name: Commit documentation changes
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name '${{ github.repository_owner }}'
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
git add -A
git commit -m "Automated API website updates."
git push
fi
- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://carmjos.github.io/userprefix
path-to-root: docs
- name: Output stats
run: |
@ -58,3 +55,16 @@ jobs:
echo "url-count = ${{ steps.sitemap.outputs.url-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."