Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Discord Moderation Actions 0.2.2 #9

Discord Moderation Actions 0.2.2

Discord Moderation Actions 0.2.2 #9

Workflow file for this run

name: Process Release
on:
release:
types:
- published
jobs:
release:
runs-on: ubuntu-latest
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASS: ${{ secrets.GPG_SIGNING_PASS }}
GITHUB_BRANCH_NAME: ${{ github.ref }}
GITHUB_TAG_NAME: ${{ github.event.release.tag_name }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: actions/checkout@v3
- name: Check API
uses: gradle/gradle-build-action@v2
with:
arguments: clean apiCheck -x build detekt checkLicenses
gradle-home-cache-cleanup: true
- name: Build Artifacts
uses: gradle/gradle-build-action@v2
with:
arguments: build -x apiCheck --stacktrace
- name: Upload artifacts GitHub
uses: AButler/[email protected]
with:
files: 'build/libs/*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build publish -x test detekt checkLicenses apiCheck
gradle-home-cache-cleanup: true