Skip to content

Commit

Permalink
chore(extension-release-published.yml): reorganize workflow steps for…
Browse files Browse the repository at this point in the history
… better readability and maintainability

feat(extension-release-published.yml): add setup for Java 17 and Maven Central Repository publishing
  • Loading branch information
jandroav committed Aug 2, 2023
1 parent 7b0b984 commit 156a11a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
server-id: sonatype-nexus-staging
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Configure Git
run: |
git config user.name "liquibot"
Expand All @@ -42,16 +52,6 @@ jobs:
filename: "${{ env.artifact_id }}-*"
out-file-path: "."

- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
server-id: sonatype-nexus-staging
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Publish to Maven Central
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
Expand Down

0 comments on commit 156a11a

Please sign in to comment.