-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.08 KB
/
release-changelog.yml
File metadata and controls
39 lines (35 loc) · 1.08 KB
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
35
36
37
38
39
name: 'Release changelog'
on:
push:
tags:
- '*'
jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
with:
configuration: ".github/workflows/changelog/configuration.json"
owner: "AlexRogalskiy"
repo: "android-patterns"
ignorePreReleases: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: actions/create-release@latest
with:
draft: false
prerelease: false
tag_name: ${{ steps.tag_name.outputs.current_version }}
release_name: ${{ steps.tag_name.outputs.current_version }}
body: ${{steps.github_release.outputs.changelog}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}