Skip to content

Commit

Permalink
fixup! [wpeview] Add configs to publish to maven repository
Browse files Browse the repository at this point in the history
  • Loading branch information
zhani committed Oct 7, 2024
1 parent de88d3b commit ac5ad7e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/publish-to-maven-central.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/publish-to-maven-central.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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:publishReleasePublicationToOSSRHRepository
env:
OSSRH_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
SIGNING_KEY: ${{ secrets.PGP_CENTRAL_SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.PGP_CENTRAL_SIGNING_KEY_PASSPHRASE }}

0 comments on commit ac5ad7e

Please sign in to comment.