Skip to content

refactor: clean unused code #138

refactor: clean unused code

refactor: clean unused code #138

Workflow file for this run

name: Publish to the Maven Central Repository
on:
push:
branches:
- develop/*
release:
types: [ created ]
concurrency:
group: publish-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
publish:
name: Publish to the Maven Central Repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Publish to the Maven Central Repository
run: ./gradlew publish
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties