Skip to content

Commit 1d36b09

Browse files
committed
chore: generate a maven bundle release for manual upload
1 parent 12e06b3 commit 1d36b09

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/prerelease.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,21 @@ jobs:
122122
name: jazzer
123123
path: _tmp/
124124

125-
- name: Run Deployment
125+
- name: Generate Jazzer Bundle for Upload to Maven Central
126126
env:
127127
RELEASE_SIGNING_KEY_ID: ${{ secrets.RELEASE_SIGNING_KEY_ID }}
128128
RELEASE_SIGNING_KEY_PRIVATE: ${{ secrets.RELEASE_SIGNING_KEY_PRIVATE }}
129129
MAVEN_USER: ${{ secrets.MAVEN_USER }}
130130
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
131131
run: JAZZER_JAR_PATH="$(pwd)/_tmp/jazzer.jar" bazel run deploy
132132

133+
- name: Upload Jazzer Bundle to Github Artifacts
134+
uses: actions/upload-artifact@v4
135+
with:
136+
name: jazzer-maven-central-bundle
137+
path: _tmp/release
138+
if-no-files-found: error
139+
133140
create_release:
134141
needs: build_release
135142
runs-on: ubuntu-22.04

deploy/deploy.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright 2024 Code Intelligence GmbH
3+
# Copyright 2025 Code Intelligence GmbH
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -57,7 +57,8 @@ java=$(rlocation "$java_rlocationpath")
5757
"$java" -jar "${JAZZER_JAR_PATH}" --version 2>&1 | grep '^Jazzer v' || \
5858
fail "JAZZER_JAR_PATH is not a valid jazzer.jar"
5959

60-
MAVEN_REPO=https://oss.sonatype.org/service/local/staging/deploy/maven2
60+
# Local release for manual upload to central.sonatype.com
61+
MAVEN_REPO=file://`pwd`/_tmp/release
6162

6263
# The Jazzer jar itself bundles native libraries for multiple architectures and thus can't be built
6364
# on the local machine. It is obtained from CI and passed in via JAZZER_JAR_PATH.

0 commit comments

Comments
 (0)