Skip to content

Commit

Permalink
[MLOP-632] Butterfree dev workflow, automate release description (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroMarquesAndrade authored Feb 11, 2021
1 parent 7427898 commit 245eaa5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ jobs:
- name: Get version
run: echo "version=$(grep __version__ setup.py | head -1 | cut -d \" -f2 | cut -d \' -f2)" >> $GITHUB_ENV

- name: Get release notes
id: get_release_notes
uses: ffurrer2/extract-release-notes@v1

- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
body: ${{ steps.get_release_notes.outputs.release_notes }}

- name: Release already exist
if: ${{ failure() }}
Expand Down

0 comments on commit 245eaa5

Please sign in to comment.