Skip to content

Commit

Permalink
Remove unneeded jdk and platform from publishing workflow (opensearch…
Browse files Browse the repository at this point in the history
…-project#2442) (opensearch-project#2453)

Maven doesn't have a way to filter published artifacts by platform build
for and since our plugin zip works in both platforms switching to a
single publishing leg.

Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit aaae74d)

Co-authored-by: Peter Nied <[email protected]>
Co-authored-by: Craig Perkins <[email protected]>
  • Loading branch information
3 people authored Feb 21, 2023
1 parent d86dc3f commit 823739a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ on:

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
Expand All @@ -27,7 +21,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: ${{ matrix.jdk }}
java-version: 11
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down

0 comments on commit 823739a

Please sign in to comment.