Skip to content

Commit 22e985e

Browse files
authored
add CI job to publish 1.4 snapshots (#2541)
1 parent d5bd449 commit 22e985e

File tree

3 files changed

+77
-5
lines changed

3 files changed

+77
-5
lines changed

.github/workflows/nightly-1.3-builds.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
name: Nightly Builds (1.3)
1010

1111
on:
12-
schedule:
13-
- cron: "0 0 * * *"
1412
workflow_dispatch:
1513

1614
permissions: {}

.github/workflows/nightly-1.4-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if: github.repository == 'apache/pekko'
2323
steps:
2424
- name: Checkout
25-
uses: actions/[email protected].0
25+
uses: actions/[email protected].1
2626
with:
2727
fetch-depth: 0
2828
fetch-tags: true
@@ -77,7 +77,7 @@ jobs:
7777
- cluster-typed/test cluster-sharding-typed/test
7878
steps:
7979
- name: Checkout
80-
uses: actions/[email protected].0
80+
uses: actions/[email protected].1
8181
with:
8282
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
8383
fetch-depth: 0
@@ -133,7 +133,7 @@ jobs:
133133
javaVersion: 25
134134
steps:
135135
- name: Checkout
136-
uses: actions/[email protected].0
136+
uses: actions/[email protected].1
137137
with:
138138
fetch-depth: 0
139139
fetch-tags: true
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+
uses: actions/[email protected]
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

Comments
 (0)