Skip to content

Commit

Permalink
Merge pull request #39 from jkfran/release-drafter
Browse files Browse the repository at this point in the history
Add release-drafter GH Action
  • Loading branch information
jkfran authored Jan 11, 2021
2 parents c653f6b + 9c1723b commit 27762db
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
change-template: "$TITLE (#$NUMBER)"
exclude-labels:
- 'skip-changelog'
template: |
## Changes
$CHANGES
## This release was made possible by the following contributors:
$CONTRIBUTORS
29 changes: 29 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Drafter

on:
push:
branches:
- master

jobs:
get_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v2
- id: get_version
run: echo "##[set-output name=version;]"$(grep '^[[:blank:]]*version' setup.py | cut -d'"' -f 2)

update_release_draft:
needs: get_version
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
tag: "${{ needs.get_version.outputs.version }}"
version: "${{ needs.get_version.outputs.version }}"
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 27762db

Please sign in to comment.