[patch] libraries Gradle Libraries Update #481
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: Build | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
jobs: | |
build-job: | |
name: "Build Linux" | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.ref }}-linux | |
cancel-in-progress: true | |
env: | |
GH_TOKEN: ${{ secrets.TESTMINTS_PAT }} | |
GITHUB_TOKEN: ${{ secrets.TESTMINTS_PAT }} | |
GRGIT_USER: ${{ secrets.TESTMINTS_PAT }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
outputs: | |
version: ${{ env.TAGGER_VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: testspace-com/setup-testspace@v1 | |
with: | |
domain: robertfmurdock | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
- name: Generate Version 🔢 | |
run: ./gradlew calculateVersion -PexportToGithub=true --scan | |
- name: Build 🔨 | |
run: ./gradlew assemble check -Pversion=${{ env.TAGGER_VERSION }} --scan --no-configuration-cache | |
- name: Release 🙏 | |
run: ./gradlew release -Pversion=${{ env.TAGGER_VERSION }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} --scan --no-configuration-cache | |
- run: git status | |
if: ${{ always() }} | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: test-output | |
path: build/test-output/ | |
- name: Push result to Testspace server | |
if: always() | |
run: | | |
testspace $(find . -path *test-results* -name *.xml) | |
build-job-mac: | |
name: "Build Mac" | |
runs-on: macos-latest | |
needs: build-job | |
concurrency: | |
group: ${{ github.ref }}-mac | |
cancel-in-progress: true | |
env: | |
TAGGER_VERSION: ${{needs.build-job.outputs.version}} | |
GH_TOKEN: ${{ secrets.TESTMINTS_PAT }} | |
GITHUB_TOKEN: ${{ secrets.TESTMINTS_PAT }} | |
GRGIT_USER: ${{ secrets.TESTMINTS_PAT }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: testspace-com/setup-testspace@v1 | |
with: | |
domain: robertfmurdock | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
- name: Release 🔨 | |
run: ./gradlew release -Pversion=${{ env.TAGGER_VERSION }} -Prelease-target=mac --scan --no-configuration-cache -x :plugins:action-mint-plugin:publishPlugins -x :plugins:mint-logs-plugin:publishPlugins | |
- run: git status | |
if: ${{ always() }} | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: test-output | |
path: | | |
build/test-output/ | |
- name: Push result to Testspace server | |
if: always() | |
run: | | |
testspace $(find . -path *test-results* -name *.xml) |