Skip to content

Commit

Permalink
Package and publish applications / wheels (#2603)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith authored Jul 1, 2022
1 parent 0a9bbaa commit b407f7d
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/publish-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ jobs:
echo "org.gradle.java.installations.paths=${{ steps.setup-java-11.outputs.path }},${{ steps.setup-java-17.outputs.path }}," >> gradle.properties
cat gradle.properties
# TODO(deephaven-core#2614): Improve gradle/CI assemble and publishing of artifacts

- name: Publish to Maven Local
if: ${{ !startsWith(github.ref, 'refs/heads/release/v') }}
uses: burrunan/gradle-cache-action@v1
with:
arguments: publishToMavenLocal -x signMavenJavaPublication -x signMyPlatformPublication
job-id: publish-local
arguments: server-netty-app:build server-jetty-app:build py-server:build py-embedded-server:build publishToMavenLocal -x signMavenJavaPublication -x signMyPlatformPublication
gradle-version: wrapper

- name: Publish
Expand All @@ -51,10 +54,35 @@ jobs:
job-id: publish
# Note: even though we specify org.gradle.parallel=false in our CI gradle.properties, we want to be explicit
# here about no parallelism to ensure we don't create disjointed staging repositories.
arguments: --no-parallel publish
arguments: --no-parallel server-netty-app:build server-jetty-app:build py-server:build py-embedded-server:build publish
gradle-version: wrapper
env:
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.CI_AT_DEEPHAVEN_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.CI_AT_DEEPHAVEN_PASSWORD }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.CI_AT_DEEPHAVEN_PASSWORD }}

- name: Upload Applications
if: ${{ startsWith(github.ref, 'refs/heads/release/v') }}
uses: actions/upload-artifact@v3
with:
name: applications
path: |
server/jetty-app/build/distributions/
server/netty-app/build/distributions/
- name: Publish deephaven-core to PyPi
if: ${{ startsWith(github.ref, 'refs/heads/release/v') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.DEEPHAVENCORE_PYPI_TOKEN }}
packages_dir: py/server/build/wheel/

- name: Publish deephaven-server to PyPi
if: ${{ startsWith(github.ref, 'refs/heads/release/v') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.DEEPHAVENSERVER_PYPI_TOKEN }}
packages_dir: py/embedded-server/build/wheel/

0 comments on commit b407f7d

Please sign in to comment.