forked from linkedin/venice
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.09 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
36
37
38
39
40
name: Deploy Javadoc
on:
push:
branches:
- main
permissions:
contents: write
jobs:
PublishJavaDoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- shell: bash
run: |
git remote set-head origin --auto
git remote add upstream https://github.com/linkedin/venice
git fetch upstream
git config --global user.name "JavaDoc Bot"
git config --global user.email "[email protected]"
git switch -C javadoc
git rebase origin/main
git push -f origin javadoc
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: "aggregateJavadoc"
- name: Deploy to GitHub Page
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: javadoc
clean: true
folder: "build/javadoc"
target-folder: docs/javadoc