-
Notifications
You must be signed in to change notification settings - Fork 21
28 lines (26 loc) · 1.36 KB
/
publish.yml
File metadata and controls
28 lines (26 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Publish SDK
on:
workflow_dispatch:
jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: '21'
- name: Release build
run: ./gradlew writeopia:assemble writeopia_models:assemble writeopia_ui:assemble plugins:writeopia_export:assemble plugins:writeopia_import_document:assemble plugins:writeopia_network:assemble plugins:writeopia_persistence_core:assemble plugins:writeopia_persistence_sqldelight:assemble plugins:writeopia_presentation:assemble plugins:writeopia_serialization:assemble
- name: Publish to MavenCentral
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
# SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}