-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add release drafter workflow Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com> * Add release drafter workflow Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com> * Add release drafter workflow Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com> * Add jenkins workflow Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com> Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release drafter | ||
|
||
# Push events to every tag not containing "/" | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
draft-a-release: | ||
name: Draft a release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
cache: gradle | ||
- name: Build with Gradle | ||
run: | | ||
./gradlew --no-daemon -Dbuild.snapshot=false publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository | ||
- name: Draft a release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
generate_release_notes: true | ||
files: | | ||
artifacts.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
lib = library(identifier: 'jenkins@1.5.1', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
||
standardReleasePipelineWithGenericTrigger( | ||
tokenIdCredential: 'jenkins-spring-data-opensearch-generic-webhook-token', | ||
causeString: 'A tag was cut on opensearch-project/spring-data-opensearch repository causing this workflow to run', | ||
downloadReleaseAsset: true, | ||
publishRelease: false) { | ||
publishToMaven( | ||
signingArtifactsPath: "$WORKSPACE/repository/", | ||
mavenArtifactsPath: "$WORKSPACE/repository/", | ||
autoPublish: false | ||
) | ||
} |