Skip to content

update name

update name #4

name: Publish to Maven Central Alice ktx
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Install GPG
run: sudo apt-get install -y gnupg
- name: Create GPG directory
run: mkdir -p ~/.gnupg
- name: Import GPG key
run: |
echo "${{ secrets.GPG_SECRET_KEY }}" | gpg --dearmor > ~/.gnupg/secring.gpg
env:
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Publish to Maven Central
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-configuration-cache
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}