Skip to content

Commit

Permalink
chore: fix classifier deploy workflow
Browse files Browse the repository at this point in the history
PRM versions are not commited anymore during release.
This change computes latest release version from tag
and updates the maven POMs before building and deploying
the artifact with vaadin classifier.
  • Loading branch information
mcollovati committed Dec 30, 2023
1 parent 618fb07 commit e0a2d12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy-classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ jobs:
ref: ${{ matrix.branch }}
fetch-depth: 0
- name: Checkout latest tag
run: git checkout $(git describe --abbrev=0 --tags --match="flow-*")
id: checkout-tag
run: |
TAG=$(git describe --abbrev=0 --tags --match="flow-*")
VERSION=${TAG/flow-/}
echo "vertx-vaadin-version=${VERSION}" >> "$GITHUB_OUTPUT"
git checkout $TAG
- name: Set up Java
uses: actions/setup-java@v3
with: # running setup-java again overwrites the settings.xml
Expand All @@ -33,6 +38,8 @@ jobs:
server-password: REPSY_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Set version
run: mvn -N -ntp versions:set -DnewVersion="${{ steps.checkout-tag.outputs.vertx-vaadin-version }}"
- name: Deploy classifiers
run: |
./mvnw -N -ntp install
Expand Down

0 comments on commit e0a2d12

Please sign in to comment.