Triggering a release {patch} (#435) #184
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: JavaCI | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
- '**/README.md' | |
- 'CODE_OF_CONDUCT.md' | |
- 'CONTRIBUTING.md' | |
- 'pull_request_template.md' | |
- '.lift/.toml' | |
- '**/.lift/.toml' | |
- 'SECURITY.md' | |
- 'LICENSE' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/assets/**' | |
- '.github/workflows/**' | |
- '.github/pr-labeler.yml' | |
- 'renovate.json' | |
- '.whitesource' | |
- 'gradle/libs.versions.toml' | |
- 'gradle/verification-metadata.xml' | |
- 'gradle/verification-metadata-clean.xml' | |
- 'gradle/wrapper/gradle-wrapper.properties' | |
- 'gradle/wrapper/gradle-wrapper.jar' | |
- 'gradlew' | |
- 'gradlew.bat' | |
- 'config/ossindex/exclusions.txt' | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Set up build environment | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PUBLISH_KEY }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2 | |
with: | |
cache-disabled: true | |
- name: Build with Gradle | |
run: > | |
./gradlew tagVersion build | |
-Pci | |
-PgithubUser=${{ secrets.PUBLISH_USER_NAME }} | |
-PgithubToken=${{ secrets.PUBLISH_KEY }} | |
- name: Decode key | |
run: | | |
mkdir -p ${{ runner.temp }}/.gnupg/ | |
echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode > ${{ runner.temp }}/.gnupg/secring.gpg | |
- name: Publish with Gradle | |
run: > | |
./gradlew publish -x test publishToSonatype closeAndReleaseSonatypeStagingRepository | |
-Pci | |
-PgithubUser=${{ secrets.PUBLISH_USER_NAME }} | |
-PgithubToken=${{ secrets.PUBLISH_KEY }} | |
-PossrhUsername=${{ secrets.OSSRH_USER }} | |
-PossrhPassword=${{ secrets.OSSRH_PASS }} | |
-Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} | |
-Psigning.password=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} | |
-Psigning.secretKeyRingFile=${{ runner.temp }}/.gnupg/secring.gpg | |
- name: Clean-up GPG key | |
if: always() | |
run: | | |
rm -rf ${{ runner.temp }}/.gnupg/ | |
- name: Upload coverage to Codecov - Core | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./file-barj-core/build/reports/jacoco/report.xml | |
flags: core | |
- name: Upload coverage to Codecov - Job | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./file-barj-job/build/reports/jacoco/report.xml | |
flags: job | |
- name: Upload coverage to Codecov - Stream IO | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./file-barj-stream-io/build/reports/jacoco/report.xml | |
flags: stream |