Skip to content

v0.0.4

v0.0.4 #7

Workflow file for this run

name: Deploy to central
on:
release:
types: [ prereleased ]
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
name: Release build and publish
runs-on: macOS-latest
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.MAVEN_SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.MAVEN_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MAVEN_GPG_KEY_CONTENTS }}
steps:
- uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- uses: actions/cache@v3
with:
path: |
~/.konan
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.MAVEN_GPG_KEY_CONTENTS }}
passphrase: ${{ secrets.MAVEN_SIGNING_PASSWORD }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Publish Fanbox library to MavenCentral
run: ./gradlew :fankt:fanbox:publishAndReleaseToMavenCentral --no-configuration-cache
- name: Publish Fantia library to MavenCentral
run: ./gradlew :fankt:fantia:publishAndReleaseToMavenCentral --no-configuration-cache