-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathbuild.yaml
More file actions
96 lines (78 loc) · 2.05 KB
/
build.yaml
File metadata and controls
96 lines (78 loc) · 2.05 KB
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
95
96
name: Build plugin
on:
workflow_dispatch:
push:
branch:
- master
jobs:
build-webui:
runs-on: ubuntu-latest
steps:
- name: Checkout WebUI
uses: actions/checkout@v6
with:
sparse-checkout: |
web-ui/
- name: Prepare directory
run: |
shopt -s dotglob
mv web-ui/* .
rm -rf web-ui
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "24"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Prepare archive
run: |
mkdir tls-manager/WEB-INF
cp static/web.xml tls-manager/WEB-INF/
- name: Create archive
run: jar -cvf tls-manager.war -C tls-manager .
- uses: actions/upload-artifact@v6
with:
name: tls-manager-ui
path: tls-manager.war
build-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"
cache: maven
- name: Build plugin
run: ./build.sh
- uses: actions/upload-artifact@v6
with:
name: tls-manager-plugin
path: target/tls-manager*.zip
package-ui:
runs-on: ubuntu-latest
needs:
- build-plugin
- build-webui
steps:
- uses: actions/download-artifact@v6
with:
pattern: tls-manager-*
- name: Add UI to plugin zip
run: |
tree .
mv tls-manager-ui/ tls-manager/
ZIP_NAME=$(find tls-manager-plugin/ -type f -maxdepth 1 -name "tls-manager-*.zip")
zip -g "$ZIP_NAME" tls-manager/tls-manager.war
- uses: actions/upload-artifact@v6
with:
name: tls-manager-bundle
path: tls-manager-plugin/tls-manager-*.zip