Skip to content

Commit

Permalink
Update release.yml [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMVoid95 authored Oct 3, 2023
1 parent eec5aa8 commit 8bf05de
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,31 @@ on:
types: [published]

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
name: Publish Release
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'
- uses: gradle/gradle-build-action@v2.9.0
if: github.ref_type == 'tag'
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
arguments: publish -Pversion=${{ github.ref_name }}

notify:
name: Discord Notification
runs-on: ubuntu-latest
needs:
- build
- publish
if: ${{ always() }}
steps:
Expand Down

0 comments on commit 8bf05de

Please sign in to comment.