Skip to content

Commit

Permalink
chore: Add logic to set version as SNAPSHOT for non-release builds in…
Browse files Browse the repository at this point in the history
… publish workflow
  • Loading branch information
hyyan committed Nov 22, 2024
1 parent 2485a5b commit c115710
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,14 @@ jobs:
}
]
- name: Set version with SNAPSHOT if not creating a release
id: set_version
run: |
if [ "${{ env.CREATE_RELEASE }}" != "true" ]; then
echo "VERSION=${{ env.VERSION }}-SNAPSHOT" >> $GITHUB_ENV
else
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
fi
- name: Publish to Nexus
run: mvn clean deploy -DskipTests -Dwebforj.version=${{ env.VERSION }} -P perform-release

0 comments on commit c115710

Please sign in to comment.