This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-pekko-persistence-r2dbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 95f1776  Setup nightly publish
95f1776 is described below

commit 95f17765a475c089ffea805ee58561fd9edbe6dd
Author: Matthew de Detrich <[email protected]>
AuthorDate: Wed Apr 12 10:41:16 2023 +0200

    Setup nightly publish
---
 .github/workflows/publish-nightly.yml | 33 +++++++++++++++++
 .github/workflows/publish.yml         | 67 -----------------------------------
 2 files changed, 33 insertions(+), 67 deletions(-)

diff --git a/.github/workflows/publish-nightly.yml 
b/.github/workflows/publish-nightly.yml
new file mode 100644
index 0000000..ae4232c
--- /dev/null
+++ b/.github/workflows/publish-nightly.yml
@@ -0,0 +1,33 @@
+name: Publish Nightly
+
+on:
+  workflow_dispatch:
+  schedule:
+    - cron: "22 0 * * *"
+
+jobs:
+  publish:
+    # runs on main repo only
+    if: github.repository == 'apache/incubator-pekko-persistence-r2dbc
+    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 to Apache Maven repo
+        env:
+          NEXUS_USER: ${{ secrets.NEXUS_USER }}
+          NEXUS_PW: ${{ secrets.NEXUS_PW }}
+        run: sbt +publish
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
deleted file mode 100644
index 931f79b..0000000
--- a/.github/workflows/publish.yml
+++ /dev/null
@@ -1,67 +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-r2dbc'
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        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: Set up JDK 8
-        uses: actions/setup-java@v3
-        with:
-          distribution: temurin
-          java-version: 8
-
-      - name: Enable jvm-opts
-        run: cp .jvmopts-ci .jvmopts
-
-      - name: Publish
-        run: |-
-          sbt ci-release
-        env:
-          PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
-          PGP_SECRET: ${{ secrets.PGP_SECRET }}
-          SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
-          SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
-
-  documentation:
-    name: Documentation
-    runs-on: ubuntu-latest
-    if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        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: Set up JDK 8
-        uses: actions/setup-java@v3
-        with:
-          distribution: temurin
-          java-version: 8
-
-      - name: Enable jvm-opts
-        run: cp .jvmopts-ci .jvmopts
-
-      - name: Publish
-        run: |-
-          eval "$(ssh-agent -s)"
-          echo $SCP_SECRET | base64 -d > /tmp/id_rsa
-          chmod 600 /tmp/id_rsa
-          ssh-add /tmp/id_rsa
-          sbt -jvm-opts .jvmopts-ci docs/publishRsync
-        env:
-          SCP_SECRET: ${{ secrets.SCP_SECRET }}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to