maven artifact test #6
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
name: Publish release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout latest code | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2.8.1 | |
- name: Execute Gradle build | |
env: | |
MAVENCENTRALUSERNAME: ${{ secrets.MAVENCENTRALUSERNAME }} | |
MAVENCENTRALPASSWORD: ${{ secrets.MAVENCENTRALPASSWORD }} | |
SIGNINGKEY: ${{ secrets.SIGNINGKEY }} | |
SIGNINGPASSWORD: ${{ secrets.SIGNINGPASSWORD }} | |
run: ./gradlew publishToSonatype closeAndReleaseStagingRepository | |
release-notes: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Release Drafter | |
uses: release-drafter/release-drafter@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |