Skip to content

Fix release assets path #22

Fix release assets path

Fix release assets path #22

Workflow file for this run

name: master
on:
push:
branches:
- master
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Test
run: ./gradlew build
- name: Publish to Sonatype
if: github.event_name == 'release'
env:
ORG_GRADLE_PROJECT_publishVersion: ${{ github.event.release.tag_name }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSPHRASE }}
run: ./gradlew clean publishAndReleaseToMavenCentral --no-configuration-cache
- name: Release assets
uses: softprops/action-gh-release@v2
if: github.event_name == 'release'
with:
tag_name: ${{ github.event.release.tag_name }}
files: |
kapsule-core/build/libs/*.jar