Update all dependencies (#123) #36
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: Publish Artifacts | |
on: | |
push: | |
tags: | |
- '**' | |
env: | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }} | |
OSS_USER: '${{ secrets.OSS_USER }}' | |
OSS_TOKEN: '${{ secrets.OSS_TOKEN }}' | |
OSS_STAGING_PROFILE_ID: '${{ secrets.OSS_STAGING_PROFILE_ID }}' | |
SIGNING_KEY_NAME: '${{ secrets.SIGNING_KEY_NAME }}' | |
SIGNING_KEY_ID: '${{ secrets.SIGNING_KEY_ID }}' | |
SIGNING_KEY_PASSPHRASE: '${{ secrets.SIGNING_KEY_PASSPHRASE }}' | |
SIGNING_KEY: '${{ secrets.SIGNING_KEY }}' | |
GRADLE_PUBLISH_KEY: '${{ secrets.GRADLE_PUBLISH_KEY }}' | |
GRADLE_PUBLISH_SECRET: '${{ secrets.GRADLE_PUBLISH_SECRET }}' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
outputs: | |
integrations-version: ${{ steps.get-integrations-version.outputs.integrations-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
- name: Build and test with Gradle | |
run: ./gradlew build --scan --stacktrace | |
- id: get-integrations-version | |
name: Get Arrow Integrations version | |
run: | | |
./gradlew | |
echo "::set-output name=integrations-version::$(head -n 1 build/semver/version.txt)" | |
- name: Upload reports | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: 'reports-${{ matrix.os }}' | |
path: '**/build/reports/**' | |
- name: Stop Gradle daemons | |
run: ./gradlew --stop | |
publish: | |
needs: build | |
env: | |
JAVA_OPTS: -Xms512m -Xmx1024m | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Publish alpha/beta/rc artifacts | |
if: | | |
contains(needs.build.outputs.integrations-version, 'alpha') || | |
contains(needs.build.outputs.integrations-version, 'beta') || | |
contains(needs.build.outputs.integrations-version, 'rc') | |
run: ./gradlew --full-stacktrace publishToSonatype closeAndReleaseSonatypeStagingRepository | |
- name: Publish final artifacts | |
if: | | |
!contains(needs.build.outputs.integrations-version, 'alpha') && | |
!contains(needs.build.outputs.integrations-version, 'beta') && | |
!contains(needs.build.outputs.integrations-version, 'rc') | |
run: ./gradlew --full-stacktrace publishToSonatype closeAndReleaseSonatypeStagingRepository | |
- name: Stop Gradle daemons | |
run: ./gradlew --stop |