Skip to content

Commit

Permalink
ci: add prp versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics authored May 31, 2024
1 parent b60a981 commit 7701ccb
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ jobs:
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Extract version from pom.xml
id: extract_version
run: |
version=$(xmllint --xpath "//*[local-name()='project']/*[local-name()='version']/text()" pom.xml)
echo "##[set-output name=VERSION;]$version"
- name: Update PRP Files
uses: CIFriends/prp-preprocessor@v1
with:
ignoredDirs: |
docs
src
target
env:
currentVersion: ${{ steps.extract_version.outputs.VERSION }}

- name: Build Plugins
run: mvn clean -B package --file pom.xml
Expand All @@ -40,4 +55,4 @@ jobs:
name: release
path: staging
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7701ccb

Please sign in to comment.