Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbilik committed Nov 22, 2024
1 parent da5747e commit c0db807
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy lib to Maven Central

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'

- name: Prepare environment
run: |
git fetch --unshallow
sudo bash -c "echo '$GPG_PRIVATE_KEY' | base64 -d > key.gpg"
GPG_KEY=$(gpg --passphrase $GPG_PASSWORD --batch --yes --export-secret-keys --armor $SIGNING_KEY_ID key.gpg | grep -v '\-\-' | grep -v '^=.' | tr -d '\n')
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSPHRASE }}
SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }}

- name: Publish to Maven Central
run: |
./gradlew publishAndReleaseToMavenCentral \
-PsigningInMemoryKey=$GPG_KEY \
-PsigningInMemoryKeyPassword=$GPG_PASSWORD \
-PmavenCentralUsername=$MAVEN_USERNAME \
-PmavenCentralPassword=$MAVEN_PASSWORD
env:
GPG_PASSWORD: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_USERNAME: ${{ secrets.ANDROID_OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.ANDROID_OSSRH_PASSWORD }}

4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ junit5-bom = "5.11.0"
junitVersion = "1.2.1"
lifecycleRuntimeKtx = "2.8.7"
activityCompose = "1.9.3"
composeBom = "2024.08.00"
composeBom = "2024.11.00"
appcompat = "1.7.0"
material = "1.12.0"
kotest = "5.9.1"
showkase = "1.0.3"
paparazzi = "1.3.4"
paparazzi = "1.3.5"
gradle-maven-publish = "0.30.0"
roborazzi = "1.9.0"

Expand Down
2 changes: 1 addition & 1 deletion lib.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ POM_SCM_CONNECTION=scm:git:github.com/AckeeCZ/ackee-android-snapshots.git
POM_SCM_DEVELOPER_CONNECTION=scm:git:ssh://github.com/AckeeCZ/ackee-android-snapshots.git
POM_SCM_URL=https://github.com/AckeeCZ/ackee-android-snapshots/tree/main
POM_URL=https://github.com/AckeeCZ/ackee-android-snapshots
VERSION_NAME=0.1.0
VERSION_NAME=1.0.0

0 comments on commit c0db807

Please sign in to comment.