-
Notifications
You must be signed in to change notification settings - Fork 37
35 lines (32 loc) · 1.18 KB
/
publish-javadoc.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: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
environment: deploy # 注意环境
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout 🛎️
uses: actions/setup-java@v1
with:
java-version: '8'
distribution: 'zulu'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Copy apidocs
run: |
cp -r api-spring-boot-starter/target/apidocs api-spring-boot-starter/apidocs
cp -r baidu-spring-boot-starter/target/apidocs baidu-spring-boot-starter/apidocs
cp -r tencent-spring-boot-starter/target/apidocs tencent-spring-boot-starter/apidocs
cp -r ali-spring-boot-starter/target/apidocs ali-spring-boot-starter/apidocs
cp -r tencent-pay-spring-boot-starter/target/apidocs tencent-pay-spring-boot-starter/apidocs
cp -r ali-pay-spring-boot-starter/target/apidocs ali-pay-spring-boot-starter/apidocs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .
GITHUB_TOKEN: ${{ secrets.SECRET_KEY }}