-
-
Notifications
You must be signed in to change notification settings - Fork 7
79 lines (64 loc) · 1.93 KB
/
build_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
name: Prepare Release
on:
release:
types: [created]
permissions:
contents: write
pages: write
id-token: write
env:
JAVA_VERSION: 1.17
GRADLE_VERSION: 8.4
jobs:
pages:
name: Deploy Javadocs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- name: Build Javadocs - Gradle ${{ env.GRADLE_VERSION }}
uses: gradle/[email protected]
with:
arguments: javadoc -Pversion=${{ github.event.release.tag_name }}
- name: Setup Pages
uses: actions/[email protected]
- name: Upload artifact
uses: actions/[email protected]
with:
path: './docs/'
name: github-pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]
with:
artifact_name: github-pages
deploy:
name: Prepare Jar & JitPack
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- name: Build - Gradle ${{ env.GRADLE_VERSION }}
uses: gradle/[email protected]
with:
arguments: build -Pversion=${{ github.event.release.tag_name }}
- name: Upload Assets to Release
uses: AButler/[email protected]
with:
files: ./build/libs/*.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update JitPack
uses: badasintended/autojitpack@v1
with:
version: ${{ github.event.release.tag_name }}