Skip to content

Commit

Permalink
ci(release): clean flattened pom files before pushing next version (#290
Browse files Browse the repository at this point in the history
)
  • Loading branch information
f-lopes authored Sep 30, 2024
1 parent d5fb3e4 commit 1edea7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 437 deletions.
256 changes: 0 additions & 256 deletions .flattened-pom.xml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw -X -B -Dchangelist= -Prelease clean deploy jreleaser:deploy
run: ./mvnw -B -Dchangelist= -Prelease clean deploy jreleaser:deploy

- name: Set next development version
run: ./mvnw -B build-helper:parse-version versions:set-property -Dproperty=revision -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} versions:commit
run: ./mvnw -B build-helper:parse-version versions:set-property -Dproperty=revision -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} versions:commit flatten:clean

- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Set next development version
tags: true
tags: true
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</modules>

<properties>
<revision>4.0.1</revision>
<revision>4.0.0</revision>
<changelist>-SNAPSHOT</changelist>

<java.version>17</java.version>
Expand Down
Loading

0 comments on commit 1edea7a

Please sign in to comment.