Skip to content

Commit c782a36

Browse files
committed
nightly publish
1 parent ae09956 commit c782a36

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/publish-1.0-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Based on Apache Arrow's java-nightly workflow
1919
# https://github.com/apache/arrow/blob/master/.github/workflows/java_nightly.yml
20-
name: Publish 1.0 documentation
20+
name: Publish documentation
2121

2222
on:
2323
workflow_dispatch:
@@ -27,17 +27,21 @@ permissions:
2727

2828
jobs:
2929
publish:
30-
name: Publish 1.0 docs
30+
name: Publish docs on ${{ matrix.pekkoVersion }}
3131
runs-on: ubuntu-20.04
3232
if: github.repository == 'apache/pekko'
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
pekkoVersion: [ "main", "1.0.x" ]
3337
steps:
3438
# TODO we will need to change to use a release tag in future
3539
- name: Checkout
3640
uses: actions/checkout@v4
3741
with:
3842
fetch-depth: 0
3943
fetch-tags: true
40-
ref: 1.0.x
44+
ref: ${{ matrix.pekkoVersion }}
4145

4246
- name: Setup Java 11
4347
uses: actions/setup-java@v4

.github/workflows/publish-nightly.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@
2020
name: Publish nightly snapshots and documentation
2121

2222
on:
23-
workflow_dispatch:
24-
schedule:
25-
- cron: "0 0 * * *"
23+
pull_request:
24+
branches: ['**']
2625

2726
permissions:
2827
contents: read
2928

3029
jobs:
3130
publish-nightly:
32-
name: Publish nightly
31+
name: Publish nightly on ${{ matrix.pekkoVersion }}
3332
runs-on: ubuntu-20.04
3433
if: github.repository == 'apache/pekko'
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
pekkoVersion: [ "main", "1.0.x" ]
3538
env:
3639
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
3740
steps:
@@ -40,6 +43,7 @@ jobs:
4043
with:
4144
fetch-depth: 0
4245
fetch-tags: true
46+
ref: ${{ matrix.pekkoVersion }}
4347

4448
- name: Setup Java 11
4549
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)