From cef44bec0033a0f220ee77615b259f20456fb986 Mon Sep 17 00:00:00 2001 From: Simon Graband Date: Mon, 8 Jul 2024 14:25:11 +0200 Subject: [PATCH] Test publish on PR --- .github/workflows/reusable-maven.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/reusable-maven.yml b/.github/workflows/reusable-maven.yml index da6a69c4..1b304334 100644 --- a/.github/workflows/reusable-maven.yml +++ b/.github/workflows/reusable-maven.yml @@ -48,7 +48,6 @@ jobs: publish: runs-on: ubuntu-latest - if: github.event_name == 'push' || github.event_name == 'release' steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -64,9 +63,6 @@ jobs: fi - name: Set up JDK 17 - if: | - (github.event_name == 'push' && steps.version_check.outputs.is_snapshot_version == 'true') || - (github.event_name == 'release' && steps.version_check.outputs.is_snapshot_version == 'false') uses: actions/setup-java@v4 with: java-version: "17" @@ -74,9 +70,7 @@ jobs: - name: Build dependencies if: | - ${{ inputs.dependencies != '' }} && - (github.event_name == 'push' && steps.version_check.outputs.is_snapshot_version == 'true') || - (github.event_name == 'release' && steps.version_check.outputs.is_snapshot_version == 'false') + ${{ inputs.dependencies != '' }} run: | IFS=',' read -r -a dirs <<< "${{ inputs.dependencies }}" for dir in "${dirs[@]}" @@ -97,17 +91,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Authenticate to Google Cloud - if: | - (github.event_name == 'push' && steps.version_check.outputs.is_snapshot_version == 'true') || - (github.event_name == 'release' && steps.version_check.outputs.is_snapshot_version == 'false') uses: google-github-actions/auth@v2 with: credentials_json: '${{ secrets.GCP_SA_KEY }}' - name: Publish package to Google Artifact Registry - if: | - (github.event_name == 'push' && steps.version_check.outputs.is_snapshot_version == 'true') || - (github.event_name == 'release' && steps.version_check.outputs.is_snapshot_version == 'false') run: | cd ${{ inputs.path_to_package }} mvn --batch-mode deploy -Partifact-registry