-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.03 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
name: Create release
on:
workflow_dispatch:
inputs:
version:
type: text
description: 'Version number Eg: 4.2.0'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create Release Notes
run: |
chmod +x ./scripts/rz.py
./scripts/rz.py create ${{github.event.inputs.version}}
- name: Commit and Push Changelog
uses: EndBug/[email protected]
with:
default_author: github_actions
message: 'Update changelog for v${{github.event.inputs.version}}'
add: 'CHANGELOG.md'
tag: v${{github.event.inputs.version}}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: v${{github.event.inputs.version}}
name: BuildZri v${{github.event.inputs.version}} released!
bodyFile: ./.tmprz/release_notes.md
- name: Clean Release Notes
run: |
./scripts/rz.py cleanup