Skip to content

Commit abe6744

Browse files
authored
chore: publish 1.4.x docs and nightlies (#894)
1 parent c79c721 commit abe6744

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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+
name: Publish 1.4 docs
19+
20+
on:
21+
workflow_dispatch:
22+
23+
jobs:
24+
publish-docs:
25+
name: Publish documentation to nightlies.apache.org
26+
runs-on: ubuntu-latest
27+
if: github.repository == 'apache/pekko-http'
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
31+
with:
32+
fetch-depth: 0
33+
fetch-tags: true
34+
ref: 1.4.x
35+
36+
- name: Set up JDK 8
37+
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
38+
with:
39+
distribution: temurin
40+
java-version: 8
41+
42+
- name: Install sbt
43+
uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1.1.14
44+
45+
- name: Cache Coursier cache
46+
uses: coursier/cache-action@v6
47+
48+
- name: Build Documentation
49+
run: |-
50+
sbt -Dpekko.genjavadoc.enabled=true "set ThisBuild / version := \"1.4.0\"; docs/paradox; unidoc"
51+
env:
52+
JAVA_OPTS: "-verbose:gc -Xmx4g"
53+
54+
# Create directory structure upfront since rsync does not create intermediate directories otherwise
55+
- name: Create directory structure
56+
run: |-
57+
mkdir -p target/nightly-docs/docs/pekko-http/1.4.0/
58+
mkdir -p target/nightly-docs/docs/pekko-http/1.4/
59+
cp -r docs/target/paradox/site/main/ target/nightly-docs/docs/pekko-http/1.4.0/docs
60+
cp -r docs/target/paradox/site/main/ target/nightly-docs/docs/pekko-http/1.4/docs
61+
rm -r docs/target/paradox/site/main/
62+
cp -r target/scala-2.13/unidoc target/nightly-docs/docs/pekko-http/1.4.0/api
63+
cp -r target/scala-2.13/unidoc target/nightly-docs/docs/pekko-http/1.4/api
64+
rm -r target/scala-2.13/unidoc
65+
cp -r target/javaunidoc target/nightly-docs/docs/pekko-http/1.4.0/japi
66+
cp -r target/javaunidoc target/nightly-docs/docs/pekko-http/1.4/japi
67+
rm -r target/javaunidoc
68+
69+
- name: Upload 1.4.x nightly docs
70+
uses: ./.github/actions/sync-nightlies
71+
with:
72+
upload: true
73+
switches: --archive --compress --update --delete --progress --relative
74+
local_path: target/nightly-docs/./docs/pekko-http/1.4.0 # The intermediate dot is to show `--relative` which paths to operate on
75+
remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/
76+
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
77+
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
78+
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
79+
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
80+
81+
- name: Upload 1.4 nightly docs
82+
uses: ./.github/actions/sync-nightlies
83+
with:
84+
upload: true
85+
switches: --archive --compress --update --delete --progress --relative
86+
local_path: target/nightly-docs/./docs/pekko-http/1.4 # The intermediate dot is to show `--relative` which paths to operate on
87+
remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/
88+
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
89+
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
90+
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
91+
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# license agreements; and to You under the Apache License, version 2.0:
3+
#
4+
# https://www.apache.org/licenses/LICENSE-2.0
5+
#
6+
# This file is part of the Apache Pekko project, which was derived from Akka.
7+
#
8+
9+
name: Publish nightly 1.4 snapshots
10+
11+
on:
12+
schedule:
13+
- cron: "30 1 * * *"
14+
workflow_dispatch:
15+
16+
jobs:
17+
publish-artifacts:
18+
name: Publish 1.4 artifacts to Apache Nexus
19+
runs-on: ubuntu-latest
20+
if: github.repository == 'apache/pekko-http'
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
24+
with:
25+
fetch-depth: 0
26+
fetch-tags: true
27+
ref: 1.4.x
28+
29+
- name: Set up JDK 8
30+
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
31+
with:
32+
distribution: temurin
33+
java-version: 8
34+
35+
- name: Install sbt
36+
uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1.1.14
37+
38+
- name: Cache Coursier cache
39+
uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7
40+
41+
- name: Install graphviz
42+
run: sudo apt-get install -y graphviz
43+
44+
- name: Publish to Apache Maven repo
45+
run: sbt +publish
46+
env:
47+
NEXUS_USER: ${{ secrets.NEXUS_USER }}
48+
NEXUS_PW: ${{ secrets.NEXUS_PW }}
49+
JAVA_OPTS: "-verbose:gc -Xmx4g"

0 commit comments

Comments
 (0)