Skip to content

Commit f615b68

Browse files
committed
Misc changes
1 parent 41faedb commit f615b68

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/deploy-snapshot.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
- uses: actions/checkout@v5
2525
with:
2626
fetch-depth: 0
27-
- name: Extract version
28-
id: version
29-
uses: ./.github/actions/extract-version
3027
- name: Set up JDK ${{ env.java_version }}-${{ env.java_distribution }}
3128
uses: actions/setup-java@v5
3229
with:
@@ -80,9 +77,9 @@ jobs:
8077
echo "JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD=$MAVEN_CENTRAL_PORTAL_TOKEN_PASSWORD"
8178
} >> "$GITHUB_ENV"
8279
- name: Stage artifacts
83-
run: mvn deploy -Ppublication -Dprettier.skip=true -Drevision=${{ steps.version.outputs.version }}
80+
run: mvn deploy -Ppublication -Dprettier.skip=true
8481
- name: Publish snapshot to Maven Central
85-
run: mvn jreleaser:deploy -Djreleaser.output.directory=out -Drevision=${{ steps.version.outputs.version }}
82+
run: mvn jreleaser:deploy -Djreleaser.output.directory=out
8683
- name: Upload JReleaser output
8784
if: always()
8885
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
2929
fetch-depth: 0
3030
# Check out the exact tagged commit so the version is correctly resolved from the tag.
3131
ref: ${{ github.event.release.tag_name }}
32-
- name: Extract version
33-
id: version
34-
uses: ./.github/actions/extract-version
3532
- name: Set up JDK ${{ env.java_version }}-${{ env.java_distribution }}
3633
uses: actions/setup-java@v5
3734
with:
@@ -85,14 +82,14 @@ jobs:
8582
echo "JRELEASER_MAVENCENTRAL_SONATYPE_PASSWORD=$MAVEN_CENTRAL_PORTAL_TOKEN_PASSWORD"
8683
} >> "$GITHUB_ENV"
8784
- name: Stage artifacts
88-
run: mvn deploy -Ppublication -Dprettier.skip=true -Drevision=${{ steps.version.outputs.version }}
85+
run: mvn deploy -Ppublication -Dprettier.skip=true
8986
- name: Deploy to Maven Central
9087
# prereleased: USER_MANAGED — artifacts sit pending in the portal for review.
9188
# released: AUTOMATIC — artifacts are published immediately after validation.
9289
# jreleaser:deploy only handles Maven Central; GitHub release management is done by the GitHub UI.
9390
env:
9491
JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_SONATYPE_PUBLISHING_TYPE: ${{ github.event.action == 'prereleased' && 'USER_MANAGED' || 'AUTOMATIC' }}
95-
run: mvn jreleaser:deploy -Djreleaser.output.directory=out -Drevision=${{ steps.version.outputs.version }}
92+
run: mvn jreleaser:deploy -Djreleaser.output.directory=out
9693
- name: Upload CLI fat jar to GitHub release
9794
run: |
9895
gh release upload "${{ github.event.release.tag_name }}" \

0 commit comments

Comments
 (0)