diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index ca279fe5..a7ecf5bd 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -74,12 +74,12 @@ jobs: id: install if: steps.publish.outcome != 'failure' continue-on-error: true - uses: appleboy/ssh-action@master + uses: peter-evans/repository-dispatch@v2 with: - host: ${{ secrets.DOCKER_SWARM_MANAGER_ONE }} - username: root - key: ${{ secrets.DOCKER_SWARM_MANAGER_ONE_KEY }} - script: docker exec ${{ secrets.DOCKER_SWARM_MANAGER_ONE_NODE_16_ID}} sh -c 'yarn global add @oraichain/oraidex-server@latest --ignore-scripts' + token: ${{ secrets.GIT_PAT }} + repository: oraichain/infra + event-type: install-package + client-payload: '{"libname": "oraidex-server-staging", "node_version": "16"}' - name: send result via discord uses: appleboy/discord-action@master @@ -87,4 +87,4 @@ jobs: webhook_id: ${{ secrets.WEBHOOK_ID }} webhook_token: ${{ secrets.WEBHOOK_TOKEN }} username: "GitBot" - message: "Repo oraidex-sdk has just published oraidex-server. result: ${{ steps.publish.outcome }}. install result: ${{ steps.install.outcome }}" + message: "Repo oraidex-sdk has just published oraidex-server. result: ${{ steps.publish.outcome }}." diff --git a/.github/workflows/publish_staging_package.yml b/.github/workflows/publish_staging_package.yml index 051dff87..c1d81199 100644 --- a/.github/workflows/publish_staging_package.yml +++ b/.github/workflows/publish_staging_package.yml @@ -65,12 +65,12 @@ jobs: id: install if: steps.publish.outcome != 'failure' continue-on-error: true - uses: appleboy/ssh-action@master + uses: peter-evans/repository-dispatch@v2 with: - host: ${{ secrets.DOCKER_SWARM_MANAGER_ONE }} - username: root - key: ${{ secrets.DOCKER_SWARM_MANAGER_ONE_KEY }} - script: docker exec ${{ secrets.DOCKER_SWARM_MANAGER_ONE_NODE_16_ID}} sh -c 'yarn global add @oraichain/oraidex-server-staging@latest --ignore-scripts' + token: ${{ secrets.GIT_PAT }} + repository: oraichain/infra + event-type: install-package + client-payload: '{"libname": "oraidex-server-staging", "node_version": "16"}' - name: send result via discord uses: appleboy/discord-action@master @@ -78,4 +78,4 @@ jobs: webhook_id: ${{ secrets.WEBHOOK_ID }} webhook_token: ${{ secrets.WEBHOOK_TOKEN }} username: "GitBot [oraidex-server-staging]" - message: "Repo oraidex-sdk has just published oraidex-server-staging. result: ${{ steps.publish.outcome }}. install result: ${{ steps.install.outcome }}. ${{ github.event.head_commit.author.name }}" + message: "Repo oraidex-sdk has just published oraidex-server-staging. result: ${{ steps.publish.outcome }}. ${{ github.event.head_commit.author.name }}" diff --git a/packages/oraidex-server/package.json b/packages/oraidex-server/package.json index 0c82e3b3..22be9c28 100644 --- a/packages/oraidex-server/package.json +++ b/packages/oraidex-server/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-server", - "version": "1.0.33", + "version": "1.0.34", "main": "dist/index.js", "bin": "dist/index.js", "license": "MIT", diff --git a/packages/oraidex-server/package.staging.json b/packages/oraidex-server/package.staging.json index 2db91d05..9cafb7f1 100644 --- a/packages/oraidex-server/package.staging.json +++ b/packages/oraidex-server/package.staging.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-server-staging", - "version": "1.0.42", + "version": "1.0.45", "main": "dist/index.js", "bin": "dist/index.js", "license": "MIT",