Skip to content

Prepare changelog for release KRis-0.5.1 #61

Prepare changelog for release KRis-0.5.1

Prepare changelog for release KRis-0.5.1 #61

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 1
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Cache global .gradle folder
uses: actions/cache@v4
with:
path: ~/.gradle
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.kt*') }}-${{ hashFiles('**/*.java') }}
restore-keys: |
gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Publish github pages
uses: gradle/gradle-build-action@v3
env:
GRGIT_USER: ${{ secrets.GRGIT_USER }}
with:
arguments: |
build
check
:guide:gitPublishPush
- name: Publish to maven central
uses: gradle/gradle-build-action@v3
with:
arguments: |
build
check
:kris-core:publish
:kris-io:publish
-x apiCheck
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}