Skip to content

Commit

Permalink
Merge pull request #15 from ChinthakaJ98/fix-release
Browse files Browse the repository at this point in the history
Fix maven release issue
  • Loading branch information
ChinthakaJ98 authored Dec 20, 2024
2 parents 2e4f9f7 + 33563ea commit 61e63d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
- name: Download Maven 3.6.3
run: |
sudo rm -rf /opt/maven
sudo rm -f /usr/bin/mvn
curl -fsSL https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -o maven.tar.gz
tar -xzf maven.tar.gz
mv apache-maven-3.6.3 $HOME/maven
echo "$HOME/maven/bin" >> $GITHUB_PATH
- name: Extract project version
run: |
VERSION=$(grep -oPm1 "(?<=<version>)[^<]+" pom.xml | sed 's/-SNAPSHOT$//')
Expand Down

0 comments on commit 61e63d6

Please sign in to comment.