Skip to content

Implement Monetization #4407

Implement Monetization

Implement Monetization #4407

Workflow file for this run

# This workflow will build a package using Gradle and then publish it to maven
name: Kotlin CI
on:
push:
branches:
- '**' # We want to run this on all branch pushes
tags-ignore:
- '**' # We don't want this to run on tags pushes
pull_request:
release:
types: [ published ]
jobs:
build:
name: Build Kord
runs-on: ubuntu-latest
if: |
!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
&& !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'kordlib/kord')
env:
KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew --stacktrace --info build
release:
name: Publish artifacts
runs-on: ubuntu-latest
needs: build
if: |
!contains(github.event.head_commit.message, '[publish skip]') && github.event_name != 'pull_request' && github.ref != 'refs/heads/master'
env:
KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
KORD_REPO_USER: ${{ secrets.KORD_REPO_USER }}
KORD_REPO_PASSWORD: ${{ secrets.KORD_REPO_PASSWORD }}
SIGNING_KEY: ${{ secrets.signingKey }}
SIGNING_PASSWORD: ${{ secrets.signingPassword }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew --stacktrace --info build
- name: Publish with Gradle
run: ./gradlew --no-parallel -x test publish