Skip to content

klxiaoniu 正在部署文档 #3

klxiaoniu 正在部署文档

klxiaoniu 正在部署文档 #3

Workflow file for this run

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 }}