Skip to content

Commit

Permalink
ci(create-release): use Akryum/release-tag action
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Feb 24, 2022
1 parent a048b75 commit b1d29c1
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
name: Create release
name: Create GitHub release

on:
push:
tags:
- 'v*'
- "v*"

jobs:
create-release:
name: Create GitHub Release
build:
name: Create release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- 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
- name: Release tag
id: release_tag
uses: Akryum/release-tag@conventional
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
preset: angular

0 comments on commit b1d29c1

Please sign in to comment.