diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 353d971fea..7aa2af780e 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -3,33 +3,26 @@ name: Publish snapshots to maven on: workflow_dispatch: push: - branches: [ - main - 1.* - 2.* - ] + branches: + - 'main' + - '1.*' + - '2.*' jobs: build-and-publish-snapshots: - strategy: - fail-fast: false - matrix: - jdk: [11, 17] - platform: ["ubuntu-latest", "windows-latest", "macos-latest"] - if: github.repository == 'opensearch-project/security' - runs-on: ${{ matrix.platform }} + runs-on: ubuntu-latest permissions: id-token: write contents: write steps: - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: temurin # Temurin is a distribution of adoptium - java-version: ${{ matrix.jdk }} - - uses: actions/checkout@v3 - - uses: aws-actions/configure-aws-credentials@v1 + java-version: 11 + - uses: actions/checkout@v4 + - uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }} aws-region: us-east-1