Skip to content

Commit

Permalink
Create changelog.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WeslleyNasRocha authored Jan 7, 2022
1 parent 58de540 commit 825ca23
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

- run: |
git fetch --prune --unshallow --tags
- name: Create changelogs
id: changelogs
uses: heineiuo/create-changelogs@master

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.changelogs.outputs.changelogs }}
draft: false
prerelease: ${{ steps.changelogs.outputs.release_type == 'prerelease' }}

0 comments on commit 825ca23

Please sign in to comment.