Timeline fixes (#18) #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: 'Release' | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.welcome=never | |
GPG_SEC: ${{ secrets.PGP_SEC }} | |
GPG_PASSWORD: ${{ secrets.PGP_PASSWORD }} | |
OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }} | |
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
jobs: | |
release: | |
name: 'Release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Fetch Git tags, so that semantic version can be calculated. | |
# Alternatively, run `git fetch --prune --unshallow --tags` as the | |
# next step, see | |
# https://github.com/actions/checkout/issues/206#issuecomment-607496604. | |
fetch-depth: 0 | |
- name: 'Set up Java' | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- name: 'Publish a release to GitHub' | |
id: publish-github | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: wrapper | |
arguments: | | |
publishAllPublicationsToGitHubRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: 'Publish a release to Maven Central' | |
id: publish-sonatype | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: wrapper | |
arguments: | | |
publishToSonatype | |
closeAndReleaseSonatypeStagingRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
github_release: | |
needs: release | |
name: 'Github Release' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Github Release' | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false |