Update ReadMe with details of FormattedDeferredText (#99) #125
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: | |
branches: [ main ] | |
tags: [ '*' ] | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.version.outputs.value }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Parse release version | |
id: version | |
uses: madhead/[email protected] | |
with: | |
file: gradle.properties | |
property: libraryVersion | |
release: | |
needs: prepare | |
# Only proceed for tagged releases and snapshots: | |
if: startsWith(github.ref, 'refs/tags/') || endsWith(needs.prepare.outputs.version, '-SNAPSHOT') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Install JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 11 | |
- name: Gradle cache | |
uses: gradle/gradle-build-action@v2 | |
- name: Assemble for release | |
run: ./gradlew clean assembleRelease --stacktrace | |
- name: Publish | |
env: | |
ORG_GRADLE_PROJECT_backbaseOssSonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_backbaseOssSonatypeUsername }} | |
ORG_GRADLE_PROJECT_backbaseOssSonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_backbaseOssSonatypePassword }} | |
ORG_GRADLE_PROJECT_backbaseOssGpgKey: ${{ secrets.ORG_GRADLE_PROJECT_backbaseOssGpgKey }} | |
ORG_GRADLE_PROJECT_backbaseOssGpgPassword: ${{ secrets.ORG_GRADLE_PROJECT_backbaseOssGpgPassword }} | |
run: ./gradlew publishReleasePublicationToMavenCentralRepository --stacktrace | |
prepare-next-development-version: | |
needs: release | |
runs-on: ubuntu-latest | |
# Only proceed for tagged releases: | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Bump to next development version | |
run: ./gradlew bumpToNextDevelopmentVersion | |
- name: Push version to main | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Prepare next development version | |
branch: main | |
file_pattern: gradle.properties | |
commit_author: GitHub Actions <[email protected]> |