Skip to content

Commit 25e9efe

Browse files
udawclaude
andcommitted
Only run deploy in release:perform
maven-release-plugin defaults release:perform to 'deploy site-deploy' because the pom has a distributionManagement/site element. The site-deploy runs in the release checkout without git credentials and fails with "could not read Username", marking every release run as failed after the artifacts were already published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent bc03977 commit 25e9efe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
git config --global user.name "github-actions[bot]"
3434
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3535
- name: Maven release
36-
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }}
36+
# Only deploy; the site is published by the deploy workflow on pushes to master.
37+
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Dgoals=deploy
3738
env:
3839
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)