Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyklon73 authored Apr 7, 2024
1 parent 7ceecf7 commit 8d2ba79
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
name: Java CD with Gradle

on:
workflow_dispatch:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build
- name: Publish with gradle
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_NAME }}
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}
RELEASE: true

0 comments on commit 8d2ba79

Please sign in to comment.