This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-pekko-persistence-jdbc.git
The following commit(s) were added to refs/heads/main by this push:
new 444af18 publish docs nightly (#41)
444af18 is described below
commit 444af184c4057a0febcc4c6340b16023c208c1c7
Author: PJ Fanning <[email protected]>
AuthorDate: Wed May 24 21:02:42 2023 +0100
publish docs nightly (#41)
* publish docs nightly
* publish jars nightly too
* more perm setup
* url issue
---
.github/workflows/checks.yml | 2 ++
.github/workflows/h2-test.yml | 2 ++
.github/workflows/link-validator.yml | 2 ++
.github/workflows/mysql-tests.yml | 2 ++
.github/workflows/oracle-tests.yml | 2 ++
.github/workflows/postgres-tests.yml | 2 ++
.github/workflows/publish-nightly.yml | 60 +++++++++++++++++++++++++++++++++++
.github/workflows/publish.yml | 32 -------------------
.github/workflows/sqlserver-tests.yml | 2 ++
docs/src/main/paradox/snapshots.md | 2 +-
project/plugins.sbt | 2 +-
project/project-info.conf | 2 +-
12 files changed, 77 insertions(+), 35 deletions(-)
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 237d951..6494b61 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -1,5 +1,7 @@
name: Basic checks
+permissions: {}
+
on:
pull_request:
push:
diff --git a/.github/workflows/h2-test.yml b/.github/workflows/h2-test.yml
index 346cba8..8614cc9 100644
--- a/.github/workflows/h2-test.yml
+++ b/.github/workflows/h2-test.yml
@@ -1,5 +1,7 @@
name: H2 Unit Tests
+permissions: {}
+
on:
pull_request:
push:
diff --git a/.github/workflows/link-validator.yml
b/.github/workflows/link-validator.yml
index 8aa9552..2341a11 100644
--- a/.github/workflows/link-validator.yml
+++ b/.github/workflows/link-validator.yml
@@ -1,5 +1,7 @@
name: Link Validator
+permissions: {}
+
on:
pull_request:
schedule:
diff --git a/.github/workflows/mysql-tests.yml
b/.github/workflows/mysql-tests.yml
index 5dc7b02..eef73cd 100644
--- a/.github/workflows/mysql-tests.yml
+++ b/.github/workflows/mysql-tests.yml
@@ -1,5 +1,7 @@
name: MySQL Integration Tests
+permissions: {}
+
on:
pull_request:
push:
diff --git a/.github/workflows/oracle-tests.yml
b/.github/workflows/oracle-tests.yml
index 1352f86..e42c07f 100644
--- a/.github/workflows/oracle-tests.yml
+++ b/.github/workflows/oracle-tests.yml
@@ -1,5 +1,7 @@
name: Oracle Integration Tests
+permissions: {}
+
on:
pull_request:
push:
diff --git a/.github/workflows/postgres-tests.yml
b/.github/workflows/postgres-tests.yml
index 4c01d05..ce5321d 100644
--- a/.github/workflows/postgres-tests.yml
+++ b/.github/workflows/postgres-tests.yml
@@ -1,5 +1,7 @@
name: Postgres Integration Tests
+permissions: {}
+
on:
pull_request:
push:
diff --git a/.github/workflows/publish-nightly.yml
b/.github/workflows/publish-nightly.yml
new file mode 100644
index 0000000..6731f1e
--- /dev/null
+++ b/.github/workflows/publish-nightly.yml
@@ -0,0 +1,60 @@
+name: Publish Nightly
+
+permissions:
+ contents: read
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: "23 0 * * *"
+
+jobs:
+ publish:
+ # runs on main repo only
+ if: github.repository == 'apache/incubator-pekko-persistence-jdbc'
+ name: Publish
+ runs-on: ubuntu-20.04
+ env:
+ JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M
-Dfile.encoding=UTF-8
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ # we don't know what commit the last tag was it's safer to get
entire repo so previousStableVersion resolves
+ fetch-depth: 0
+
+ - name: Setup Java 8
+ uses: actions/setup-java@v3
+ with:
+ distribution: temurin
+ java-version: 8
+
+ - name: Publish Jars to Apache Maven Repository
+ run: |-
+ sbt +publish
+ env:
+ NEXUS_USER: ${{ secrets.NEXUS_USER }}
+ NEXUS_PW: ${{ secrets.NEXUS_PW }}
+
+ - name: Build Documentation
+ run: |-
+ sbt docs/paradox unidoc
+
+ # Create directory structure upfront since rsync does not create
intermediate directories otherwise
+ - name: Create nightly directory structure
+ run: |-
+ mkdir -p target/nightly-docs/docs/pekko-persistence-jdbc/${{
github.ref_name }}-snapshot/
+ mv docs/target/paradox/site/main/
target/nightly-docs/docs/pekko-persistence-jdbc/${{ github.ref_name
}}-snapshot/docs
+ mv target/scala-2.13/unidoc
target/nightly-docs/docs/pekko-persistence-jdbc/${{ github.ref_name
}}-snapshot/api
+
+ - name: Upload nightly docs
+ uses: ./.github/actions/sync-nightlies
+ with:
+ upload: true
+ switches: --archive --compress --update --delete --progress
--relative
+ local_path: target/nightly-docs/./docs/pekko-persistence-jdbc/ # The
intermediate dot is to show `--relative` which paths to operate on
+ remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/
+ remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+ remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+ remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+ remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
deleted file mode 100644
index a0e56fa..0000000
--- a/.github/workflows/publish.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: Publish
-
-on:
- push:
- branches:
- - main
- tags: ["*"]
-
-jobs:
- sbt:
- name: sbt publish
- runs-on: ubuntu-latest
- if: github.repository == 'apache/incubator-pekko-persistence-jdbc'
- steps:
- - name: Checkout
- uses: actions/checkout@v3
- with:
- # we don't know what commit the last tag was it's safer to get
entire repo so previousStableVersion resolves
- fetch-depth: 0
-
- - name: Setup Java 8
- uses: actions/setup-java@v3
- with:
- distribution: temurin
- java-version: 8
-
- - name: Publish
- run: |-
- sbt +publish
- env:
- NEXUS_USER: ${{ secrets.NEXUS_USER }}
- NEXUS_PW: ${{ secrets.NEXUS_PW }}
diff --git a/.github/workflows/sqlserver-tests.yml
b/.github/workflows/sqlserver-tests.yml
index 50ba724..d469d2d 100644
--- a/.github/workflows/sqlserver-tests.yml
+++ b/.github/workflows/sqlserver-tests.yml
@@ -1,5 +1,7 @@
name: SqlServer Integration Tests
+permissions: {}
+
on:
pull_request:
push:
diff --git a/docs/src/main/paradox/snapshots.md
b/docs/src/main/paradox/snapshots.md
index f786f70..7f82b75 100644
--- a/docs/src/main/paradox/snapshots.md
+++ b/docs/src/main/paradox/snapshots.md
@@ -3,7 +3,7 @@ project.description: Snapshot builds of Apache Pekko
Persistence JDBC are provid
---
# Snapshots
-[snapshots]:
https://https://repository.apache.org/content/groups/snapshots/org/apache/pekko/pekko-persistence-jdbc_2.13/
+[snapshots]:
https://repository.apache.org/content/groups/snapshots/org/apache/pekko/pekko-persistence-jdbc_2.13/
Snapshots are published to the Apache Snapshot repository every night.
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 6af3d68..2401921 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -16,7 +16,7 @@ addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
// We have to deliberately use older versions of sbt-paradox because current
Pekko sbt build
// only loads on JDK 1.8 so we need to bring in older versions of parboiled
which support JDK 1.8
-addSbtPlugin(("org.apache.pekko" % "pekko-sbt-paradox" %
"0.0.0+33-0022f891-SNAPSHOT").excludeAll(
+addSbtPlugin(("org.apache.pekko" % "pekko-sbt-paradox" %
"0.0.0+38-68da3106-SNAPSHOT").excludeAll(
"com.lightbend.paradox", "sbt-paradox",
"com.lightbend.paradox" % "sbt-paradox-apidoc",
"com.lightbend.paradox" % "sbt-paradox-project-info"))
diff --git a/project/project-info.conf b/project/project-info.conf
index 25d8e91..05dc7d7 100644
--- a/project/project-info.conf
+++ b/project/project-info.conf
@@ -2,7 +2,7 @@ project-info {
version: "current"
scaladoc:
"https://pekko.apache.org/api/pekko-persistence-jdbc/"${project-info.version}"/org/apache/pekko/persistence/jdbc/"
shared-info {
- jdk-versions: ["Adopt OpenJDK 8", "Adopt OpenJDK 11"]
+ jdk-versions: ["OpenJDK 8", "OpenJDK 11", "OpenJDK 17"]
snapshots: {
url: "snapshots.html"
text: "Snapshots are available"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]