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-projection.git
The following commit(s) were added to refs/heads/main by this push:
new f94de63 Add publish-nightly.yml
f94de63 is described below
commit f94de6365122a802da85ab7b01c848882208793f
Author: Matthew de Detrich <[email protected]>
AuthorDate: Mon Mar 27 22:56:51 2023 +0200
Add publish-nightly.yml
---
.github/workflows/publish-nightly.yml | 33 +++++++++++++++++++++
.github/workflows/release.yml | 56 -----------------------------------
2 files changed, 33 insertions(+), 56 deletions(-)
diff --git a/.github/workflows/publish-nightly.yml
b/.github/workflows/publish-nightly.yml
new file mode 100644
index 0000000..8350b1e
--- /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-projection'
+ 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/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index c1d1e1b..0000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-name: Release
-
-on:
- push:
- branches:
- - master
- tags: ["*"]
-
-jobs:
- release:
- # runs on main repo only
- if: github.repository == 'apache/incubator-pekko-projection'
- name: Release
- # the release environment provides access to secrets required in the
release process
- #
https://github.com/apache/incubator-1``````pekko-projection/settings/environments
- environment: release
- runs-on: ubuntu-20.04
- 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: Checkout GitHub merge
- if: github.event.pull_request
- run: |-
- git fetch origin pull/${{ github.event.pull_request.number
}}/merge:scratch
- git checkout scratch
-
- - name: Setup Scala with JDK 8
- uses: actions/setup-java@v3
- with:
- java-version: 8
- distribution: temurin
-
- - name: Cache Coursier cache
- uses: coursier/[email protected]
-
- - name: Publish artifacts for all Scala versions
- env:
- PGP_SECRET: ${{ secrets.PGP_SECRET }}
- SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- run: sbt ci-release
-
- - name: Publish API and reference documentation
- env:
- GUSTAV_KEY: ${{ secrets.GUSTAV_KEY }}
- GUSTAV_PASSPHRASE: ${{ secrets.GUSTAV_PASSPHRASE }}
- run: |+
- eval "$(ssh-agent -s)"
- echo $GUSTAV_KEY | base64 -di > .github/id_rsa
- chmod 600 .github/id_rsa
- ssh-add .github/id_rsa
- sbt "++2.13.10 docs/publishRsync"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]