Skip to content

Commit

Permalink
Adding workflow to automatically publish releases after a tag is pushed
Browse files Browse the repository at this point in the history
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
  • Loading branch information
saratvemulapalli committed Jul 7, 2022
1 parent eaab798 commit 281aef1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Releases

on:
push:
tags:
- '*.*.*'

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: release-notes/opensearch.release-notes-${{steps.tag.outputs.tag}}.md

0 comments on commit 281aef1

Please sign in to comment.