-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (35 loc) · 1 KB
/
futalk.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
name: 文档部署🚀
run-name: ${{ github.actor }} 正在部署文档
on: [push]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: 更换当前目录
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
name: 设置java版本
- name: 查看环境
run: pwd
- name: 查看环境
run: ls
- name: 设置
run: chmod +x gradlew
- name: 验证gradle环境
run : sudo ./gradlew --version
- name: 生成文档
run: ./gradlew :shared:dokkaHtml
- name: 验证文件
run: tree shared/build/dokka/html
- name: 部署文档 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: shared/build/dokka/html
branch: docx
# repository-name: Futalker/test
# token: ${{ secrets.TOKEN }}