Skip to content

Publish to Maven Central #8

Publish to Maven Central

Publish to Maven Central #8

name: Publish to Maven Central
on:
workflow_dispatch: # Allow manual trigger
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch Dependencies (WPE Bootstrap)
run: python3 tools/scripts/bootstrap.py -a all
- name: Java™ Setup
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build and publish
run: ./gradlew wpeview:publishMavenPublicationToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.PGP_CENTRAL_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.PGP_CENTRAL_SIGNING_KEY_PASSPHRASE }}