Skip to content

Commit

Permalink
ci: setup publishing (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
madisp authored Apr 22, 2024
1 parent 4bf1aed commit 48319d7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
maven:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: gradle
- name: Publish to Maven Central
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSPHRASE }}
ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: "true"
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-parallel --no-daemon
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
java
alias(libs.plugins.maven.publish)
}

dependencies {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
GROUP=pink.madis.apk.arsc
VERSION_NAME=0.0.8-SNAPSHOT

SONATYPE_HOST=DEFAULT

POM_NAME=emulator.wtf Gradle Plugin
POM_DESCRIPTION=Android Chunk format reader/writer
POM_INCEPTION_YEAR=2017
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
autovalue = "1.10.4"
guava = "33.1.0-android"
annotations = "24.1.0"
maven-publish = "0.28.0"

[plugins]
maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "maven-publish" }

[libraries]
autovalue-compiler = { module = "com.google.auto.value:auto-value", version.ref = "autovalue" }
Expand Down

0 comments on commit 48319d7

Please sign in to comment.