Nightly Publish CI #586
This file contains hidden or 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: Nightly Publish CI | |
| on: | |
| schedule: | |
| # 1AM EST == 5AM UTC | |
| - cron: '0 5 * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| nightly-publish: | |
| runs-on: ubuntu-24.04 | |
| if: ${{ github.repository_owner == 'deephaven' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup JDKs | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: | | |
| 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Setup gradle properties | |
| run: | | |
| .github/scripts/gradle-properties.sh 21 >> gradle.properties | |
| cat gradle.properties | |
| - name: Publish to Central Portal snapshots repository | |
| # We are not worried here about using --no-parallel (as we are with release publishing), since publishing | |
| # snapshots does not even create staging repositories. | |
| run: ./gradlew publishToMavenCentral | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingKey: ${{ secrets.CI_AT_DEEPHAVEN_KEY }} | |
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.CI_AT_DEEPHAVEN_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingRequired: true | |
| - name: Slack Nightly Failure | |
| uses: slackapi/slack-github-action@v2.1.0 | |
| id: slack-nightly-failure | |
| if: failure() | |
| with: | |
| webhook-type: webhook-trigger | |
| payload: | | |
| { | |
| "slack_message": "Nightly publish failure @ ${{ github.head_ref }} ${{ github.sha }} ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NIGHTLY_FAILURE }} |