Skip to content

Commit

Permalink
Auto publish pydeephaven (#4057)
Browse files Browse the repository at this point in the history
* Auto publish pydeephaven

* Use the already created secret

* Fix a yml syntax error
  • Loading branch information
jmao-denver committed Jun 24, 2023
1 parent d358f50 commit aee97fd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/publish-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1
with:
job-id: publish-local
arguments: server-netty-app:build server-jetty-app:build py-server:build py-embedded-server:build publishToMavenLocal
arguments: server-netty-app:build server-jetty-app:build py-server:build py-embedded-server:build py-client:build publishToMavenLocal
gradle-version: wrapper

- name: Publish
Expand All @@ -51,7 +51,7 @@ jobs:
with:
job-id: publish
# We need to be explicit here about no parallelism to ensure we don't create disjointed staging repositories.
arguments: --no-parallel server-netty-app:build server-jetty-app:build py-server:build py-embedded-server:build publish
arguments: --no-parallel server-netty-app:build server-jetty-app:build py-server:build py-client:build py-embedded-server:build publish
gradle-version: wrapper
env:
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.SONATYPE_USERNAME }}
Expand All @@ -69,6 +69,7 @@ jobs:
server/jetty-app/build/distributions/
py/server/build/wheel/
py/embedded-server/build/wheel/
py/client/build/wheel/
- name: Publish deephaven-core to PyPi
if: ${{ startsWith(github.ref, 'refs/heads/release/v') }}
Expand All @@ -85,3 +86,11 @@ jobs:
user: __token__
password: ${{ secrets.DEEPHAVENSERVER_PYPI_TOKEN }}
packages_dir: py/embedded-server/build/wheel/

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

0 comments on commit aee97fd

Please sign in to comment.