From 6a772bd7dd2cbd92cc65d2a9dc2349126477b052 Mon Sep 17 00:00:00 2001 From: Naveen Tatikonda Date: Wed, 24 May 2023 15:51:40 -0500 Subject: [PATCH] Add Auto Release Workflow (#167) Signed-off-by: Naveen Tatikonda (cherry picked from commit 609d0ab2acbd1535e8445bc34a61a78f58dec3c4) --- .github/workflows/auto-release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 000000000..10a9e1a45 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,28 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: GitHub App token + id: github_app_token + uses: tibdex/github-app-token@v1.5.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + installation_id: 22958780 + - name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + - uses: actions/checkout@v2 + - uses: ncipollo/release-action@v1 + with: + github_token: ${{ steps.github_app_token.outputs.token }} + bodyFile: release-notes/opensearch-neural-search.release-notes-${{steps.tag.outputs.tag}}.md