Skip to content

Commit

Permalink
Add release workflows (#74)
Browse files Browse the repository at this point in the history
* 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
gaiksaya authored Dec 15, 2022
1 parent 930f5db commit 3fb7dac
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-drafter.yml
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
16 changes: 16 additions & 0 deletions jenkins/release.jenkinsFile
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
)
}

0 comments on commit 3fb7dac

Please sign in to comment.