forked from kidstuff/mongostore
-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (37 loc) · 1.11 KB
/
create-release.yml
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
40
41
42
43
44
name: Goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install git-chglog
run: |
wget https://github.com/git-chglog/git-chglog/releases/download/v0.15.4/git-chglog_0.15.4_linux_amd64.tar.gz
tar -xzf git-chglog_0.15.4_linux_amd64.tar.gz
sudo mv git-chglog /usr/local/bin/
- name: Generate Changelog
run: git-chglog -c .chglog/config.yml -o CHANGELOG.md ${{ github.ref_name }}
- name: Read Changelog
id: read_changelog
run: |
echo "CHANGELOG_CONTENT<<EOF" >> $GITHUB_ENV
cat CHANGELOG.md >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ env.CHANGELOG_CONTENT }}
tag: ${{ github.ref_name }}
draft: false
prerelease: false