Add MemberProfileAutoModerationRule
#4427
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |