build(deps): Bump actions/setup-java from 3.12.0 to 3.13.0 #822
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#******************************************************************************* | |
# Copyright (c) Contributors to the Eclipse Foundation | |
# | |
# This program and the accompanying materials are made available under the | |
# terms of the Eclipse Public License 2.0 which is available at | |
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | |
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | |
# | |
# SPDX-License-Identifier: (EPL-2.0 OR Apache-2.0) | |
#******************************************************************************* | |
name: CI Build | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
paths-ignore: | |
- 'docs/**' | |
- '.github/**/*docs*' | |
- '.github/**/*codeql*' | |
- '.github/*.yml' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '.github/**/*docs*' | |
- '.github/**/*codeql*' | |
- '.github/*.yml' | |
env: | |
LC_ALL: en_US.UTF-8 | |
MAVEN_OPTS: >- | |
-Dhttp.keepAlive=false | |
-Dmaven.wagon.http.pool=false | |
-Dmaven.wagon.http.retryHandler.count=3 | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- 'ubuntu-latest' | |
java: | |
- '8' | |
- '11' | |
include: | |
- os: 'ubuntu-latest' | |
java: '17' | |
canonical: ${{ (github.repository == 'eclipse/transformer') && ((github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/release')) && (github.event_name != 'pull_request') }} | |
- os: 'ubuntu-latest' | |
java: '17' | |
experimental: true | |
mavenopts: '-Pbnd-snapshot' | |
- os: 'windows-latest' | |
java: '17' | |
name: JDK${{ matrix.java }} ${{ matrix.os }} ${{ matrix.mavenopts }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- name: Git Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Build | |
id: build | |
continue-on-error: ${{ matrix.experimental }} | |
run: | | |
./.github/scripts/build.sh ${{ matrix.mavenopts }} | |
- name: Configure settings.xml for Publish | |
if: ${{ matrix.canonical }} | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
server-id: ossrh | |
server-username: OSSRH_USERNAME | |
server-password: OSSRH_TOKEN | |
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
gpg-passphrase: GPG_PASSPHRASE | |
- name: Publish | |
if: ${{ matrix.canonical }} | |
run: | | |
./.github/scripts/publish.sh -Possrh | |
env: | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} |