Skip to content

Commit

Permalink
enable enableKlibsCrossCompilation update git publish workflows.
Browse files Browse the repository at this point in the history
adds a release workflow
  • Loading branch information
luca992 committed Nov 28, 2024
1 parent 4a2d126 commit 70e26d2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Snapshot to Maven Central
on:
push:
branches:
- release
jobs:
publish:
runs-on: ubuntu-latest
name: Build and publish snapshot
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'

# Base64 decodes and pipes the GPG key content into the secret file
- name: Prepare environment
env:
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
run: |
sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
- name: Publish snapshot
run: ./gradlew publishAndReleaseToMavenCentral
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
STAGING_PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Publish Snapshot to Maven Central
on:
push:
branches:
Expand All @@ -8,20 +8,21 @@ jobs:
runs-on: ubuntu-latest
name: Build and publish snapshot
steps:
- name: Check
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
java-version: '21'
cache: 'gradle'

# Base64 decodes and pipes the GPG key content into the secret file
- name: Prepare environment
env:
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
run: |
git fetch --unshallow
sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
- name: Publish snapshot
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ compose.desktop.verbose=true
android.useAndroidX=true
kotlin.mpp.stability.nowarn=true
kotlin.js.yarn=false
kotlin.native.enableKlibsCrossCompilation=true

org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true

GROUP=media.kamel
VERSION_NAME=1.0.1
VERSION_NAME=1.0.2-SNAPSHOT

SONATYPE_HOST=S01
RELEASE_SIGNING_ENABLED=true

0 comments on commit 70e26d2

Please sign in to comment.