Skip to content

Commit

Permalink
nightly publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Roiocam committed Jun 4, 2024
1 parent ae09956 commit c782a36
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-1.0-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

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

on:
workflow_dispatch:
Expand All @@ -27,17 +27,21 @@ permissions:

jobs:
publish:
name: Publish 1.0 docs
name: Publish docs on ${{ matrix.pekkoVersion }}
runs-on: ubuntu-20.04
if: github.repository == 'apache/pekko'
strategy:
fail-fast: false
matrix:
pekkoVersion: [ "main", "1.0.x" ]
steps:
# TODO we will need to change to use a release tag in future
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: 1.0.x
ref: ${{ matrix.pekkoVersion }}

- name: Setup Java 11
uses: actions/setup-java@v4
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,21 @@
name: Publish nightly snapshots and documentation

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
pull_request:
branches: ['**']

permissions:
contents: read

jobs:
publish-nightly:
name: Publish nightly
name: Publish nightly on ${{ matrix.pekkoVersion }}
runs-on: ubuntu-20.04
if: github.repository == 'apache/pekko'
strategy:
fail-fast: false
matrix:
pekkoVersion: [ "main", "1.0.x" ]
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
Expand All @@ -40,6 +43,7 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ matrix.pekkoVersion }}

- name: Setup Java 11
uses: actions/setup-java@v4
Expand Down

0 comments on commit c782a36

Please sign in to comment.