-
-
Notifications
You must be signed in to change notification settings - Fork 1
96 lines (92 loc) · 2.54 KB
/
release.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Release
on:
release:
types: [published]
jobs:
test:
name: Final Test Release
runs-on: [ubuntu-latest]
strategy:
matrix:
jvm: [8, 11, 14]
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 50
- name: Gradle Cache
id: gradle-cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: jdk${{ matrix.jvm }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
jdk${{ matrix.jvm }}-gradle-
- name: Set up JDK ${{ matrix.jvm }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jvm }}
- name: Gradle Test
run: |
chmod +x ./gradlew
./gradlew test -x javadoc
release-bintray:
name: Release Publication
runs-on: [ubuntu-latest]
needs: test
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 50
- name: Gradle Cache
id: gradle-cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: jdk8-gradle-${{ hashFiles('**/build.gradle*') }}
restore-keys: |
jdk8-gradle-
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- name: Deploy release
env:
BINTRAY_USER: stachu540
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./gradlew
./gradlew bintrayUpload releaseAssets
release-docs:
name: Release Documentation to Github Pages
runs-on: [ubuntu-latest]
needs: test
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 50
- name: Gradle Cache
id: gradle-cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: jdk11-gradle-${{ hashFiles('**/build.gradle*') }}
restore-keys: |
jdk11-gradle-
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Prepare Javadoc
run: |
chmod +x ./gradlew
./gradlew :all:javadoc
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./all/build/docs/javadoc
commit_message: Deploy documentation for ${{ steps.tag.outputs.id }}