Skip to content

update

update #18

Workflow file for this run

name: 'CI - Snapshots'
on:
push:
jobs:
build:
runs-on: ubuntu-latest
name: Build & Compile
steps:
- uses: actions/checkout@v3
- run: chmod +x ./gradlew
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
id: compile
with:
arguments: compileJava
publish:
runs-on: ubuntu-latest
name: Publish Snapshot
needs:
- build
steps:
- uses: actions/checkout@v3
- run: chmod +x ./gradlew
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
if: needs.build.result == 'success'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MVN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MVN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPGKEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.PGP_KEYID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSKEY }}
with:
arguments: publish
notify:
name: Discord Notification
runs-on: ubuntu-latest
needs:
- build
- publish
if: ${{ always() }}
steps:
- name: Notify
uses: ROMVoid95/discord-webhook@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}