Automates import of release notes in body
Requires RELEASENOTES file in repo root
This commit is contained in:
parent
dbbc666a8d
commit
cd6e105c6e
|
@ -2,9 +2,10 @@ name: Create Release .tar.gz
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ master ]
|
||||||
# Sequence of patterns matched against refs/tags
|
# Sequence of patterns matched against refs/tags
|
||||||
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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -13,6 +14,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
@ -21,10 +28,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
body: |
|
body: ${ steps.release_notes_file.outputs.contents }
|
||||||
Changes
|
|
||||||
- 1
|
|
||||||
- 2
|
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Build project # This would actually build your project
|
- name: Build project # This would actually build your project
|
||||||
|
|
Loading…
Reference in New Issue