-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 880 Bytes
/
Copy pathrelease.yaml
File metadata and controls
32 lines (31 loc) · 880 Bytes
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
name: 'Release'
on:
push:
tags:
- '*'
jobs:
release:
if: |
startsWith(github.ref, 'refs/tags/v') &&
!contains(github.ref, 'alpha') &&
!contains(github.ref, 'beta') &&
!contains(github.ref, 'rc')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create Changelog
id: create_changelog
uses: mikepenz/release-changelog-builder-action@v2
with:
configuration: ./.github/config/changelog.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.create_changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}