Skip to content

Release 0.15.0.1

Release 0.15.0.1 #57

Workflow file for this run

# Publish a new Release
name: Release
on:
push:
tags: ['[0-9]+.[0-9]+.[0-9]+.[0-9]+*']
jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
# ================================
# CHECKOUT
# ================================
- name: Checkout git tag
uses: actions/checkout@v4
# ================================
# SET UP JDK
# ================================
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-package: jdk
java-version: 21
# ================================
# CREATE RELEASE
# ================================
- name: Create Release
uses: softprops/action-gh-release@v1
# ================================
# PUBLISH
# ================================
- name: Publish
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_githubUsername: ${{ secrets.PUBLISH_USERNAME }}
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.PUBLISH_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
uses: gradle/actions/setup-gradle@v3
with:
arguments: publish -Prelease --info --scan
# ================================
# PUBLISH JAVADOC
# ================================
- name: Publish Javadoc to GitHub Pages
shell: bash
run: |
cp -r result/build/docs/javadoc docs/javadoc/${GITHUB_REF#refs/tags/}
git config user.name "Guillermo Calvo"
git config user.email "[email protected]"
git add docs/javadoc/${GITHUB_REF#refs/tags/}
git status
git commit --message "Publish Javadoc to GitHub Pages"
git push origin HEAD:main