mirai/.github/workflows/doc.yml

38 lines
759 B
YAML
Raw Normal View History

2020-05-24 16:42:42 +08:00
name: mirai-doc Publish
on:
push:
tags:
- 'v*' # 正式版本
2021-01-30 20:49:19 +08:00
2020-05-24 16:42:42 +08:00
jobs:
mirai-docs:
2021-01-28 10:39:18 +08:00
runs-on: ubuntu-latest
steps:
- 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 *
- name: Prepare environment
run: ./gradlew :mirai-dokka:prepare
2021-01-28 10:39:18 +08:00
- name: Dokka
run: ./gradlew dokkaHtmlMultiModule
- name: Update version number
run: ./gradlew :mirai-dokka:update-vers
2021-01-28 10:39:18 +08:00
- name: Deploy
run: ./gradlew :mirai-dokka:deployPages
env:
gh_token: ${{ secrets.MAMOE_TOKEN }}