Automates import of release notes in body

Requires RELEASENOTES file in repo root
This commit is contained in:
Zachary Klosko 2020-12-01 16:24:30 -05:00
parent dbbc666a8d
commit cd6e105c6e
1 changed files with 9 additions and 5 deletions

View File

@ -2,9 +2,10 @@ name: Create Release .tar.gz
on:
push:
branches: [ master ]
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- '\d+.\d+.\d+(~\s+\.\d+)*' # Originally '*', changes by @paddatrapper
jobs:
build:
@ -13,6 +14,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Read file contents
id: release_notes_file
uses: andstor/file-reader-action@v1
with:
path: "RELEASENOTES"
- run: echo RELEASENOTES
- name: Create Release
id: create_release
uses: actions/create-release@v1
@ -21,10 +28,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes
- 1
- 2
body: ${ steps.release_notes_file.outputs.contents }
draft: false
prerelease: false
- name: Build project # This would actually build your project