Skip to content

Merge pull request #97 from GiantTreeLP/dependabot/maven/proguard-ser… #122

Merge pull request #97 from GiantTreeLP/dependabot/maven/proguard-ser…

Merge pull request #97 from GiantTreeLP/dependabot/maven/proguard-ser… #122

Workflow file for this run

name: Deploy to Sonatype
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Build with Gradle
run: ./gradlew clean publish
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Build with Maven
run: mvn -B package
working-directory: ./proguard-services-mapper-maven
- name: Set up OSS Sonatype
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: maven
server-id: ossrh
server-username: OSSRH_USER
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
settings-path: ${{ github.workspace }}
- name: Publish to OSS Sonatype
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
working-directory: ./proguard-services-mapper-maven
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}