2020-05-24 16:42:42 +08:00
|
|
|
name: mirai-doc Publish
|
|
|
|
|
|
|
|
on:
|
2021-12-04 23:43:09 +08:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*' # 正式版本
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2020-05-24 16:42:42 +08:00
|
|
|
|
2021-12-04 23:43:09 +08:00
|
|
|
jobs:
|
|
|
|
mirai-docs:
|
2022-06-05 02:46:11 +08:00
|
|
|
runs-on: macos-12 # 14G memory
|
2021-01-28 10:39:18 +08:00
|
|
|
steps:
|
2021-12-04 23:43:09 +08:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
2021-01-30 20:49:19 +08:00
|
|
|
|
2021-12-18 16:34:39 +08:00
|
|
|
- name: Setup JDK 11
|
|
|
|
uses: actions/setup-java@v2
|
2021-01-28 10:39:18 +08:00
|
|
|
with:
|
2021-12-18 16:34:39 +08:00
|
|
|
distribution: 'adopt'
|
|
|
|
java-version: '11'
|
2021-01-30 20:49:19 +08:00
|
|
|
|
|
|
|
- name: chmod -R 777 *
|
|
|
|
run: chmod -R 777 *
|
2021-12-04 23:43:09 +08:00
|
|
|
|
|
|
|
- name: Prepare environment
|
|
|
|
run: ./gradlew :mirai-dokka:prepare
|
|
|
|
|
2021-01-28 10:39:18 +08:00
|
|
|
- name: Dokka
|
2021-12-04 23:43:09 +08:00
|
|
|
run: ./gradlew dokkaHtmlMultiModule
|
|
|
|
|
|
|
|
- name: Update version number
|
|
|
|
run: ./gradlew :mirai-dokka:update-vers
|
2021-01-28 10:39:18 +08:00
|
|
|
|
2021-12-04 23:43:09 +08:00
|
|
|
- name: Deploy
|
|
|
|
run: ./gradlew :mirai-dokka:deployPages
|
|
|
|
env:
|
|
|
|
gh_token: ${{ secrets.MAMOE_TOKEN }}
|