Skip to content

Commit aef4ae5

Browse files
authored
Fix release (#1344)
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent d1ab9a8 commit aef4ae5

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Build
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["main"]
9+
10+
permissions: {}
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
- uses: jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67 # v2.1.1
20+
- name: Cache local Maven repository
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/.m2/repository
24+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25+
restore-keys: |
26+
${{ runner.os }}-maven-
27+
- name: Run the Maven verify phase
28+
run: mise run build-release

mise.toml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ PROTO_GENERATION = "true"
66
"go:github.com/gohugoio/hugo" = "latest"
77
"go:github.com/grafana/oats" = "latest"
88
java = "temurin-17.0.13+11"
9-
lychee = "latest"
9+
lychee = "latest"
1010
protoc = "latest"
1111

1212
[tasks.ci]
1313
description = "CI Build"
14-
run = [
15-
"./mvnw clean install",
16-
# just to check if javadoc can be generated
17-
"./mvnw javadoc:javadoc -P javadoc"
18-
]
19-
env = { REQUIRE_PROTO_UP_TO_DATE = "true" }
14+
run = "./mvnw clean install"
15+
env.REQUIRE_PROTO_UP_TO_DATE = "true"
2016

2117
[tasks.format]
2218
description = "format source code"
@@ -80,6 +76,11 @@ run = "./scripts/set-release-version-github-pages.sh"
8076
description = "Prepare GitHub pages"
8177
depends = ["javadoc", "set-gh-pages-version"]
8278

79+
[tasks.gh-pages-dev]
80+
description = "Build GitHub pages for dev"
81+
run = "hugo server -D"
82+
dir = "docs"
83+
8384
[tasks.build-gh-pages]
8485
description = "Build GitHub pages"
8586
# For maximum backward compatibility with Hugo modules
@@ -90,6 +91,11 @@ run = [
9091
"echo 'ls ./public/api' && ls ./public/api"
9192
]
9293

94+
[tasks.build-release]
95+
description = "Build release"
96+
run = "./scripts/build-release.sh"
97+
env.TAG = "1.4.0-SNAPSHOT"
98+
9399
[settings]
94100
# to get lock file support and for go backend
95101
experimental = true

prometheus-metrics-exporter-opentelemetry/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</description>
2020

2121
<properties>
22-
<automatic.module.name>io.prometheus.metrics.exporter.opentelemetry.no-otel</automatic.module.name>
22+
<automatic.module.name>io.prometheus.metrics.exporter.opentelemetry.nootel</automatic.module.name>
2323
</properties>
2424

2525
<dependencyManagement>

0 commit comments

Comments
 (0)