From 9677c7508baef4e7382b7e5e4509a61ad8917f03 Mon Sep 17 00:00:00 2001 From: jidicula Date: Sun, 10 Jan 2021 21:59:22 -0500 Subject: [PATCH] [feat][CI] Autogenerate release draft from template --- .github/RELEASE-TEMPLATE.md | 5 +++++ .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/RELEASE-TEMPLATE.md create mode 100644 .github/workflows/release.yml diff --git a/.github/RELEASE-TEMPLATE.md b/.github/RELEASE-TEMPLATE.md new file mode 100644 index 0000000..77f8a71 --- /dev/null +++ b/.github/RELEASE-TEMPLATE.md @@ -0,0 +1,5 @@ +# Changes +* First change + +# Announcements +* First announcement diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..26e7f61 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body_path: '.github/RELEASE-TEMPLATE.md' + draft: true + prerelease: false