Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
# The POMs set pubScmUrl from scm.developerConnection, which is an ssh URL and
# cannot authenticate here. Rewrite it to https and let the job token supply the
# credential, so the token stays out of the command line and the process list.
#
# Only pubScmUrl is overridden. The target branch comes from the POM: the parent
# sets gh-pages, and codehaus-plexus.github.io overrides it to master because an
# organisation page is served from there. Forcing gh-pages here would silently
# publish that site to a branch nobody serves.
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -105,6 +110,5 @@ jobs:
./mvnw ${{ inputs.maven_args }} \
${{ inputs.multi-module && 'site site:stage scm-publish:publish-scm' || 'site-deploy' }} \
"-Dscmpublish.pubScmUrl=scm:git:https://github.com/${{ github.repository }}.git" \
"-Dscmpublish.scm.branch=gh-pages" \
"-Dscmpublish.dryRun=${{ inputs.dry-run }}" \
"-Dscmpublish.checkinComment=Site checkin for ${{ github.repository }}@${{ github.sha }}"