-
Notifications
You must be signed in to change notification settings - Fork 23
46 lines (36 loc) · 1.32 KB
/
build-generator.yml
File metadata and controls
46 lines (36 loc) · 1.32 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
name: Build Generator JAR
on:
push:
branches: [main]
paths:
- 'html-generators/generate.java'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '25'
- uses: jbangdev/setup-jbang@main
- name: Build fat JAR
run: jbang export fatjar --force --output html-generators/generate.jar html-generators/generate.java
- name: Build AOT cache
run: java -XX:AOTCacheOutput=html-generators/generate.aot -jar html-generators/generate.jar
- name: Commit updated JAR and AOT cache
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add html-generators/generate.jar html-generators/generate.aot
if git diff --cached --quiet; then
echo "No changes to generate.jar or generate.aot"
else
git commit -m "Rebuild generate.jar and generate.aot from generate.java
Auto-generated by build-generator workflow.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
git push
fi