Skip to content

Commit

Permalink
Update maven-publish.yml (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckl0sk0rtge authored Aug 9, 2024
1 parent 71408cc commit 08cccab
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ on:
workflow_dispatch:

jobs:
build-java-17:
deploy:
runs-on: ubuntu-latest
env:
SONAR_JRE: '17'
permissions:
contents: read
packages: write
Expand All @@ -27,26 +25,3 @@ jobs:
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ github.token }}

build-java-11:
runs-on: ubuntu-latest
env:
SONAR_JRE: '11'
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Deploy to GitHub Packages
run: |
export MVN_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
mvn versions:set -DnewVersion=$MVN_VERSION-jre11
mvn versions:commit
mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 08cccab

Please sign in to comment.