mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
更新文档上传方式 (#535)
* Update DOKKA Upload * GH Token -> Deploy Key * Change upload path * Change DOC Target to project-mirai/mirai-doc
This commit is contained in:
parent
f577a5fd99
commit
bf4e205b1b
34
.github/workflows/doc.yml
vendored
34
.github/workflows/doc.yml
vendored
@ -22,27 +22,17 @@ jobs:
|
|||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Gradle clean
|
|
||||||
run: ./gradlew clean
|
|
||||||
- name: Gradle build
|
- name: Gradle build
|
||||||
run: ./gradlew build # if test's failed, don't publish
|
run: ./gradlew clean build # if test's failed, don't publish
|
||||||
- name: Gradle :mirai-core:dokkaGitHubUpload
|
- name: Gradle :mirai-core:dokkaGenerator
|
||||||
run: ./gradlew :mirai-core:dokkaGitHubUpload -Dgithub_token=${{ secrets.MAMOE_TOKEN }} -Pgithub_token=${{ secrets.MAMOE_TOKEN }}
|
run: ./gradlew :mirai-core:dokka
|
||||||
- name: Gradle :mirai-core-qqandroid:dokkaGitHubUpload
|
- name: GitHub Pages Deploy
|
||||||
run: ./gradlew :mirai-core-qqandroid:dokkaGitHubUpload -Dgithub_token=${{ secrets.MAMOE_TOKEN }} -Pgithub_token=${{ secrets.MAMOE_TOKEN }}
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
deploy_key: ${{ secrets.DOC_DEPLOY_KEY }}
|
||||||
|
publish_dir: ./mirai-core/build/dokka
|
||||||
|
external_repository: project-mirai/mirai-doc
|
||||||
|
publish_branch: master
|
||||||
|
user_name: 'github-actions[bot]'
|
||||||
|
user_email: 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
|
||||||
|
|
||||||
# - name: Upload artifact
|
|
||||||
# uses: actions/upload-artifact@v1.0.0
|
|
||||||
# with:
|
|
||||||
# # Artifact name
|
|
||||||
# name: mirai-core
|
|
||||||
# # Directory containing files to upload
|
|
||||||
# path: "mirai-core/build/libs/mirai-core-*-all.jar"
|
|
||||||
# - name: Upload artifact
|
|
||||||
# uses: actions/upload-artifact@v1.0.0
|
|
||||||
# with:
|
|
||||||
# # Artifact name
|
|
||||||
# name: mirai-core-qqandroid-all
|
|
||||||
# # Directory containing files to upload
|
|
||||||
# path: "mirai-core-qqandroid/build/libs/mirai-core-qqandroid-*-all.jar"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user