Skip to content

Commit 45ae913

Browse files
glaudeeeclaude
andcommitted
ci: unify on github-workflow-standard (build.yml + release.yml)
- maven.yml → build.yml: build-only, push (branches-ignore main, kein pull_request → keine Doppel-Läufe), concurrency, least-priv permissions; JDK-Matrix [11,17,21] behalten; mvn verify statt compile test. - Action-Versionen auf latest major (checkout@v4, setup-java@v4). - Toter ACCESS_TOKEN-Env-Var entfernt (in keiner pom.xml referenziert). - release.yml: explizite permissions: contents: write (JitPack/README). - Runner unverändert ubuntu-latest (kein self-hosted). Standard: personal vault/concepts/github-workflow-standard.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 40e6d98 commit 45ae913

3 files changed

Lines changed: 33 additions & 26 deletions

File tree

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches-ignore: [main] # main = release branch → release.yml; PRs inherit via head SHA
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
name: Build for JDK ${{ matrix.java }}
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
java: [11, 17, 21]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up JDK ${{ matrix.java }}
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: ${{ matrix.java }}
27+
distribution: temurin
28+
cache: maven
29+
- name: Build & test
30+
run: mvn -B -ntp verify

.github/workflows/maven.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write # README version bump push
9+
710
jobs:
811
trigger-jitpack:
912
name: Trigger JitPack Build

0 commit comments

Comments
 (0)