Skip to content

Commit 685c2fd

Browse files
minoneerclaude
andcommitted
Add tag-triggered release workflow; drop unused private kconfig repo
release.yml builds on a version tag (version derived from the tag, leading 'v' stripped) and publishes a GitHub Release with EndlessDispense.jar attached + auto-generated notes. Remove the leftover maven.pkg.github.com/minoneer/kconfig repository from the pom: it is unused since the migration to kraftlin-config (on Maven Central) and keeps this public project free of private repos. Verified the build still resolves against public repos only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b9704b0 commit 685c2fd

2 files changed

Lines changed: 40 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+'
7+
- '[0-9]+.[0-9]+.[0-9]+'
8+
- 'v[0-9]+.[0-9]+'
9+
- 'v[0-9]+.[0-9]+.[0-9]+'
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
cache: maven
25+
26+
- name: Set version from tag
27+
run: |
28+
VERSION="${GITHUB_REF_NAME#v}"
29+
echo "Building release version $VERSION"
30+
mvn -B versions:set -DnewVersion="$VERSION" -DgenerateBackupPoms=false
31+
32+
- name: Build with Maven
33+
run: mvn -B package --file pom.xml
34+
35+
- name: Create GitHub Release
36+
uses: softprops/action-gh-release@v2
37+
with:
38+
files: target/EndlessDispense.jar
39+
generate_release_notes: true
40+
fail_on_unmatched_files: true

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@
125125
<id>bungeecord-repo</id>
126126
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
127127
</repository>
128-
<repository>
129-
<id>kconfig</id>
130-
<url>https://maven.pkg.github.com/minoneer/kconfig</url>
131-
</repository>
132128
</repositories>
133129

134130
</project>

0 commit comments

Comments
 (0)