Skip to content

Commit

Permalink
Add release workflows (opensearch-project#317)
Browse files Browse the repository at this point in the history
* Add release workflows

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>

* Add changelog

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>

* Update credential id

* change the jenkins lib version

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>

Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Theo Truong <theotr@amazon.com>
  • Loading branch information
gaiksaya authored and nhtruong committed Feb 24, 2023
1 parent e261672 commit efee7aa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Draft a release

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
11 changes: 11 additions & 0 deletions jenkins/release.JenkinsFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
lib = library(identifier: 'jenkins@1.1.0', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
]))

standardReleasePipelineWithGenericTrigger(
tokenIdCredential: 'jenkins-opensearch-js-generic-webhook-token',
causeString: 'A tag was cut on opensearch-project/opensearch-js repository causing this workflow to run',
publishRelease: true){
publishToNpm(repository: 'https://github.com/opensearch-project/opensearch-js', tag: "$tag")
}

0 comments on commit efee7aa

Please sign in to comment.