-
Notifications
You must be signed in to change notification settings - Fork 9
26 lines (25 loc) · 863 Bytes
/
Copy pathtag.yml
File metadata and controls
26 lines (25 loc) · 863 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
name: Bump version
on:
push:
branches:
- master
jobs:
tag:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
tag_prefix: v
custom_release_rules: |
"fix:patch:Bug Fixes,patch:patch:Changes,feature:minor:Features,change:minor:Changes,minor:minor:Changes,breaking:major:Breaking Changes,major:major:Major Changes"
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}