Skip to content

Commit

Permalink
Merge pull request #45 from Lyaaaaaaaaaaaaaaa/master
Browse files Browse the repository at this point in the history
Adding the workflow to create releases with changelog
  • Loading branch information
quentincaffeino authored Jan 21, 2021
2 parents 75135c1 + ed2d56a commit 1ba2904
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/automatic_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
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
with:
fetch-depth: 0

- name: Create Changelog
uses: Bullrich/generate-release-changelog@master # https://github.com/marketplace/actions/generate-release-changelog
id: Changelog
env:
REPO: ${{ github.repository }}

- name: Create Release
id: create_release
uses: actions/create-release@latest # Uses https://github.com/marketplace/actions/create-a-release
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: |
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false

0 comments on commit 1ba2904

Please sign in to comment.