Skip to content

Commit

Permalink
[release] wip on release code
Browse files Browse the repository at this point in the history
  • Loading branch information
meronbrouwer committed Dec 16, 2024
1 parent 6048aca commit 11eea40
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,29 @@ jobs:
with:
gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}

- name: Build Project for release
run: xvfb-run mvn package -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg

- name: Set up Apache Maven Central
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21
server-id: ossrh
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_PASSWORD

- name: Deploy to the Maven Central Repository
run: mvn deploy -P release -DskipTests -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg
- name: Build Project for release & Deploy
run: xvfb-run mvn package deploy -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
MAVEN_OPTS: "--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"

# - name: Set up Apache Maven Central
# uses: actions/[email protected]
# with:
# distribution: 'zulu'
# java-version: 21
# server-id: ossrh
# server-username: MAVEN_CENTRAL_USERNAME
# server-password: MAVEN_CENTRAL_PASSWORD
#
# - name: Deploy to the Maven Central Repository
# run: mvn deploy -P release -DskipTests -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg
# env:
# MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
# MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
# MAVEN_OPTS: "--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 11eea40

Please sign in to comment.