Skip to content

Commit f3de4c4

Browse files
committed
tip
1 parent 67eb48a commit f3de4c4

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1+
# This workflow automates the release process when a draft release is created
2+
# on GitHub. It uses Maven release plugin to manage versions and deploys to
3+
# Maven Central
4+
#
5+
# Usage:
6+
# 1. Create a new draft release in GitHub UI with tag format: vX.Y.Z
7+
# (e.g., v1.2.0)
8+
# - Select the target branch (typically main)
9+
# 2. This workflow will automatically:
10+
# - Use Maven release:prepare to update versions and create release commit
11+
# - Use Maven release:perform to build and deploy artifacts to Maven Central
12+
# - Create the tag to point to release commit
13+
# - Push commits back to the originating branch
14+
# - Publish the GitHub release (mark draft as non-draft)
15+
116
name: Automated Release
217

318
on:
419
release:
5-
types: [created] # Only fire when a release is created
20+
types: [created] # Only fire when a release is created
621

722
permissions:
8-
contents: write # Required to push commits, update tags and edit releases
23+
contents: write # Required to push commits, update tags and edit releases
924

1025
jobs:
1126
release:

0 commit comments

Comments
 (0)