diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6981a34..88b2fe2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,10 +1,11 @@
+
name: Maven Release
on:
- workflow_dispatch:
push:
- branches:
+ branches:
- main
+ workflow_dispatch:
jobs:
release:
@@ -14,7 +15,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
- fetch-depth: 0 # Ensures full Git history for Maven release plugin
+ ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
+
+ - name: Set up Git Author Identity
+ run: |
+ git config --global user.name "github-actions[bot]"
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
+
+ - name: Persist SSH Configuration
+ run: |
+ mkdir -p ~/.ssh
+ echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
+ chmod 600 ~/.ssh/id_ed25519
+ echo "Host github.com" > ~/.ssh/config
+ echo " StrictHostKeyChecking no" >> ~/.ssh/config
+ echo " IdentityFile ~/.ssh/id_ed25519" >> ~/.ssh/config
+ eval "$(ssh-agent -s)"
+ ssh-add ~/.ssh/id_ed25519
- name: Set up JDK
uses: actions/setup-java@v3
@@ -30,11 +47,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven
- - name: Configure Git with Token
- run: |
- git remote set-url origin https://x-access-token:${{ secrets.RELEASE_TOKEN }}@github.com/PabloSanchi/jchunk.git
+ - name: Set Correct Remote URL
+ run: git remote set-url origin git@github.com:PabloSanchi/jchunk.git
- name: Run Maven Release
run: |
- mvn release:prepare -B
- mvn release:perform -B
+ mvn release:prepare -B -e -X
+ mvn release:perform -B -e -X
diff --git a/jchunk-core/pom.xml b/jchunk-core/pom.xml
index a99a273..09c98ec 100644
--- a/jchunk-core/pom.xml
+++ b/jchunk-core/pom.xml
@@ -4,7 +4,7 @@
com.github.PabloSanchi
jchunk
- 0.0.0-SNAPSHOT
+ 0.0.1-SNAPSHOT
jchunk-core
@@ -17,7 +17,7 @@
scm:git:git://github.com/PabloSanchi/jchunk.git
scm:git:git@github.com:PabloSanchi/jchunk.git
https://github.com/PabloSanchi/jchunk
- v0.0.0
-
+ v0.0.0
+
\ No newline at end of file
diff --git a/jchunk-fixed/pom.xml b/jchunk-fixed/pom.xml
index 1197119..e61e5a4 100644
--- a/jchunk-fixed/pom.xml
+++ b/jchunk-fixed/pom.xml
@@ -4,7 +4,7 @@
com.github.PabloSanchi
jchunk
- 0.0.0-SNAPSHOT
+ 0.0.1-SNAPSHOT
jchunk-fixed
@@ -17,8 +17,8 @@
scm:git:git://github.com/PabloSanchi/jchunk.git
scm:git:git@github.com:PabloSanchi/jchunk.git
https://github.com/PabloSanchi/jchunk
- v0.0.0
-
+ v0.0.0
+
diff --git a/jchunk-recursive-character/pom.xml b/jchunk-recursive-character/pom.xml
index 1da4e99..053464d 100644
--- a/jchunk-recursive-character/pom.xml
+++ b/jchunk-recursive-character/pom.xml
@@ -4,7 +4,7 @@
com.github.PabloSanchi
jchunk
- 0.0.0-SNAPSHOT
+ 0.0.1-SNAPSHOT
jchunk-recursive-character
@@ -17,8 +17,8 @@
scm:git:git://github.com/PabloSanchi/jchunk.git
scm:git:git@github.com:PabloSanchi/jchunk.git
https://github.com/PabloSanchi/jchunk
- v0.0.0
-
+ v0.0.0
+
diff --git a/jchunk-semantic/pom.xml b/jchunk-semantic/pom.xml
index 3486adc..b4ebbc6 100644
--- a/jchunk-semantic/pom.xml
+++ b/jchunk-semantic/pom.xml
@@ -4,7 +4,7 @@
com.github.PabloSanchi
jchunk
- 0.0.0-SNAPSHOT
+ 0.0.1-SNAPSHOT
jchunk-semantic
@@ -17,8 +17,8 @@
scm:git:git://github.com/PabloSanchi/jchunk.git
scm:git:git@github.com:PabloSanchi/jchunk.git
https://github.com/PabloSanchi/jchunk
- v0.0.0
-
+ v0.0.0
+
diff --git a/pom.xml b/pom.xml
index c751065..91ca9ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.github.PabloSanchi
jchunk
- 0.0.0-SNAPSHOT
+ 0.0.1-SNAPSHOT
pom
https://github.com/PabloSanchi/text-chunker-module.git
@@ -23,7 +23,7 @@
scm:git:git://github.com/PabloSanchi/jchunk.git
scm:git:git@github.com:PabloSanchi/jchunk.git
https://github.com/PabloSanchi/jchunk
- v0.0.0
+ v0.0.0
@@ -149,8 +149,8 @@
v@{project.version}
true
true
- clean install
- deploy
+ clean verify
+ none