Skip to content

Commit 8b89385

Browse files
committed
build: fix release.yml
- Force manual run for release workflow
1 parent cfd6763 commit 8b89385

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
name: Release to Maven Central
22

33
on:
4-
push:
5-
tags:
6-
- 'v[0-9]+.[0-9]+.[0-9]+'
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: 'Release and tag version'
8+
required: true
9+
default: "v1.5.0-dev.N"
10+
developmentVersion:
11+
description: 'Version to use for new working copy'
12+
required: true
13+
default: '2.0.0-SNAPSHOT'
714

815
jobs:
916
release:
@@ -28,6 +35,15 @@ jobs:
2835
git config user.email "actions@github.com"
2936
git config user.name "GitHub Actions"
3037
38+
- name: Run release prepare
39+
env:
40+
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }}
41+
DEVELOPMENT_VERSION: ${{ github.event.inputs.developmentVersion }}
42+
run: |
43+
./mvnw release:prepare -s .maven_settings.xml -DskipTests -Darguments=-DskipTests \
44+
-DreleaseVersion="$RELEASE_VERSION" -Dtag="$RELEASE_VERSION" \
45+
-DdevelopmentVersion="$DEVELOPMENT_VERSION"
46+
3147
- name: Publish to Maven Central
3248
run: |
3349
./mvnw -B clean deploy -PsonatypeRelease -DskipTests

0 commit comments

Comments
 (0)