-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.04 KB
/
github-page.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy GitHub Pages
# 触发条件:在 push 到 master 分支后
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-deploy:
# 服务器环境:最新版 Ubuntu
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up the Java JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
# 生成javadoc
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 6.7.1
arguments: dokkaHtml
# 部署到 GitHub Pages
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPOSITORY_NAME: ayvytr/ayvytr.github.io
BRANCH: master
FOLDER: ./smart-adapter-androidx/build/javadoc
CLEAN: false
TARGET_FOLDER: javadocs/smart-adapter