Skip to content

Commit 572fc1f

Browse files
authored
feat: Add workflow for version bump and release creation
1 parent 4ecf753 commit 572fc1f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# example 1: on push to master
2+
name: Bump version
3+
on:
4+
workflow_call:
5+
secrets:
6+
token:
7+
required: true
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: '0'
17+
18+
- name: Bump version and push tag
19+
uses: anothrNick/github-tag-action@v1 # Don't use @master or @v1 unless you're happy to test the latest version
20+
id: tag_version
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.token }}
23+
TAG_PREFIX: v
24+
25+
- name: Create a GitHub release
26+
uses: ncipollo/release-action@v1
27+
with:
28+
tag: ${{ steps.tag_version.outputs.new_tag }}
29+
name: ${{ steps.tag_version.outputs.new_tag }}
30+
generateReleaseNotes: true

0 commit comments

Comments
 (0)