Skip to content

Commit a77e821

Browse files
committed
Added release versioning
1 parent fb51fe9 commit a77e821

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/maven-deploy-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
java-version: 1.8
1414
- name: Build
15-
run: mvn -B package --file pom.xml
15+
run: mvn -B -DnewVersion=${{ github.event.release.tag_name }} package --file pom.xml
1616
- name: Deploy to JavaWebStack Repository
1717
run: mvn deploy -DnewVersion=${{ github.event.release.tag_name }} -s build/settings.xml
1818
env:

.github/workflows/maven-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
with:
1111
java-version: 1.8
1212
- name: Build
13-
run: mvn -B package --file pom.xml
13+
run: mvn -DnewVersion=1.0-SNAPSHOT -B package --file pom.xml
1414
- name: Deploy to JavaWebStack Repository
15-
run: mvn deploy -s build/settings.xml
15+
run: mvn deploy -DnewVersion=1.0-SNAPSHOT -s build/settings.xml
1616
env:
1717
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
18-
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
18+
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.javawebstack</groupId>
88
<artifactId>Web-Framework</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>${project.DnewVersion}</version>
1010

1111
<repositories>
1212
<repository>

0 commit comments

Comments
 (0)