Skip to content

Commit

Permalink
v0.9.1
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Sickle <sickle@hey.com>
  • Loading branch information
simonsickle committed Jun 29, 2021
1 parent 9674985 commit bf76fa2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 24 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Android CI

on:
push:
branches: [ main ]
tags:
- '**'

jobs:
build:
Expand All @@ -17,23 +18,11 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
- name: Configure GPG Key
run: |
mkdir -p ~/.gnupg/
printf "$GPG_SECRET_KEY" | base64 --decode > ~/.gnupg/private.key
gpg --batch --import ~/.gnupg/private.key
env:
GPG_SECRET_KEY: ${{ secrets.GPG_KEY }}

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Publish Artifacts
run: ./gradlew composed-barcodes:publishReleasePublicationToSonatypeRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
GPG_KEY: ${{ secrets.GPG_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion composed-barcodes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
ext {
// Provide your own coordinates here
PUBLISH_GROUP_ID = 'com.simonsickle'
PUBLISH_VERSION = '0.9.0'
PUBLISH_VERSION = '0.9.1'
PUBLISH_ARTIFACT_ID = 'composed-barcodes'
}

Expand Down
8 changes: 4 additions & 4 deletions scripts/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ afterEvaluate {
}
}

ext["signing.keyId"] = rootProject.ext["signing.keyId"]
ext["signing.password"] = rootProject.ext["signing.password"]
//ext["signing.secretKeyRingFile"] = rootProject.ext["signing.secretKeyRingFile"]

signing {
def signingKey = rootProject.ext["signing.key"]
def signingPassword = rootProject.ext["signing.password"]
useGpgCmd()
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications
}
6 changes: 2 additions & 4 deletions scripts/publish-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''
ext["sonatypeStagingProfileId"] = ''
ext["signing.keyId"] = ''
ext["signing.key"] = ''
ext["signing.password"] = ''
ext["signing.secretKeyRingFile"] = ''

File secretPropsFile = project.rootProject.file('local.properties')
if (secretPropsFile.exists()) {
Expand All @@ -17,9 +16,8 @@ if (secretPropsFile.exists()) {
ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME')
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID')
ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID')
ext["signing.key"] = System.getenv('GPG_KEY')
ext["signing.password"] = System.getenv('SIGNING_PASSWORD')
ext["signing.secretKeyRingFile"] = System.getenv('SIGNING_SECRET_KEY_RING_FILE')
}

// Set up Sonatype repository
Expand Down

0 comments on commit bf76fa2

Please sign in to comment.