Skip to content

Commit 3e54545

Browse files
committed
[ci] Deploy update site only once
1 parent 769326c commit 3e54545

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function build() {
3535
# stop early for invalid maven version and branch/tag combination
3636
pmd_ci_maven_verify_version || exit 0
3737

38-
if [ "$(pmd_ci_utils_get_os)" != "linux" ]; then
38+
if [[ "$(pmd_ci_utils_get_os)" != "linux" || "${DEPLOY}" != "true" ]]; then
3939
pmd_ci_log_group_start "Build with mvnw"
4040
${xvfb_cmd} ./mvnw clean verify \
4141
--show-version --errors --batch-mode --no-transfer-progress \

.github/actions/build/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
targetPlatform:
55
description: 'The eclipse target platform to build the plugins against'
66
required: true
7+
deploy:
8+
description: 'Whether to build only or also deploy the update site'
9+
required: true
710
pmdCiSecretPassphrase:
811
description: 'Secret needed for releases'
912
required: false
@@ -19,5 +22,6 @@ runs:
1922
shell: bash
2023
env:
2124
TARGET_PLATFORM: ${{ inputs.targetPlatform }}
25+
DEPLOY: ${{ inputs.deploy }}
2226
PMD_CI_SECRET_PASSPHRASE: ${{ inputs.pmdCiSecretPassphrase }}
2327
GITHUB_TOKEN: ${{ inputs.githubToken }}

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
uses: ./.github/actions/build
3131
with:
3232
targetPlatform: 2023-03
33+
deploy: true
3334
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
3435
githubToken: ${{ secrets.GITHUB_TOKEN }}
3536

@@ -70,5 +71,6 @@ jobs:
7071
uses: ./.github/actions/build
7172
with:
7273
targetPlatform: ${{ matrix.targetPlatform }}
74+
deploy: false
7375
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
7476
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)