-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (35 loc) · 1009 Bytes
/
cd.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
name: Test And Deploy
permissions:
contents: write
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "oracle"
- name: Set execute permission
run: |
chmod +x ./tools/mvn_test.sh
- name: Maven tests
run: |
./tools/mvn_test.sh
shell: bash
publish:
runs-on: ubuntu-latest
needs: test
steps:
- name: Deploy javadoc to Github Pages
uses: dev-vince/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
java-version: "17"
java-distribution: "adopt" # The distributor of the target JDK. See https://github.com/actions/setup-java for more information.
project: maven # The project type.
branch: "gh-pages" # The branch for the javadoc contents.