|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# Based on Apache Arrow's java-nightly workflow |
| 19 | +# https://github.com/apache/arrow/blob/master/.github/workflows/java_nightly.yml |
| 20 | +name: Publish nightly 1.4 snapshots |
| 21 | + |
| 22 | +on: |
| 23 | + workflow_dispatch: |
| 24 | + schedule: |
| 25 | + - cron: "0 0 * * *" |
| 26 | + |
| 27 | +permissions: |
| 28 | + contents: read |
| 29 | + |
| 30 | +jobs: |
| 31 | + publish-nightly: |
| 32 | + name: Publish 1.4 nightly |
| 33 | + runs-on: ubuntu-22.04 |
| 34 | + if: github.repository == 'apache/pekko' |
| 35 | + env: |
| 36 | + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} |
| 37 | + steps: |
| 38 | + - name: Checkout |
| 39 | + |
| 40 | + with: |
| 41 | + fetch-depth: 0 |
| 42 | + fetch-tags: true |
| 43 | + persist-credentials: false |
| 44 | + ref: 1.4.x |
| 45 | + |
| 46 | + - name: Setup Java 11 |
| 47 | + uses: actions/setup-java@v5 |
| 48 | + with: |
| 49 | + distribution: temurin |
| 50 | + java-version: 11 |
| 51 | + |
| 52 | + - name: Install sbt |
| 53 | + uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1.1.14 |
| 54 | + |
| 55 | + - name: Cache Coursier cache |
| 56 | + uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.8 |
| 57 | + |
| 58 | + - name: Install Graphviz |
| 59 | + run: |- |
| 60 | + sudo apt-get install graphviz |
| 61 | +
|
| 62 | + - name: Report MIMA incompatibility issues |
| 63 | + run: |- |
| 64 | + sbt +mimaReportBinaryIssues |
| 65 | +
|
| 66 | + - name: Publish to Apache Maven repo |
| 67 | + env: |
| 68 | + NEXUS_USER: ${{ secrets.NEXUS_USER }} |
| 69 | + NEXUS_PW: ${{ secrets.NEXUS_PW }} |
| 70 | + run: sbt -Dsbt.repository.publish.attempts=10 +publish |
| 71 | + |
| 72 | + - name: Build Documentation |
| 73 | + run: |- |
| 74 | + sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc |
0 commit comments