-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (39 loc) · 1.09 KB
/
run.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
45
46
47
name: Create Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
create-changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout locally
uses: actions/checkout@latest
if: ${{ env.ACT }}
with:
path: "tag-changelog"
- name: Checkout GitHub
uses: actions/checkout@latest
if: ${{ !env.ACT }}
- name: Create latest tag
uses: EndBug/latest-tag@v1
if: ${{ !env.ACT }}
- name: Create major tag
uses: nowactions/update-majorver@v1
if: ${{ !env.ACT }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create changelog
id: changelog
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_types: other,doc,chore,build
- name: Create release
uses: softprops/action-gh-release@v2
if: ${{ !env.ACT }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}