generated from ecomplus/application-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 893 Bytes
/
create-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Create release
on:
push:
tags:
- 'v*'
jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get semver number
id: get_semver
env:
TAG_NAME: ${{ github.ref }}
run: echo "::set-output name=num::${TAG_NAME:11}"
- name: Create release on GitHub API
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: "@${{ github.repository }}@${{ steps.get_semver.outputs.num }}"
body: |
:scroll: [Changelog](https://github.com/${{ github.repository }}/blob/v${{ steps.get_semver.outputs.num }}/CHANGELOG.md)
draft: false
prerelease: false