Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
DevOps : Update CICD workflows trigger logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Tu.Le committed Sep 20, 2023
1 parent d3b71ba commit ff190bf
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
web3rpc:
- "web3rpc/rpc-specs/**"
- name: generate python sdk
- name: generate web3py-ext sdk
if: steps.verify-changed-files.outputs.web3py-ext_any_changed == 'true'
shell: bash
run: |
Expand All @@ -62,38 +62,14 @@ jobs:
python setup.py bdist_wheel &&\
cd -
- name: Publish distribution 📦 to PyPI
- name: Publish web3py-ext sdk
if: steps.verify-changed-files.outputs.web3py-ext_any_changed == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: web3py-ext/dist

- name: generate java sdk
if: steps.verify-changed-files.outputs.web3j-ext_any_changed == 'true'
shell: bash
run: |
cd web3rpc/sdk/client/java && bash -x java-generate.sh && cd -
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}

- name: Publish web3rpc-java package
if: steps.verify-changed-files.outputs.web3j-ext_any_changed == 'true'
uses: gradle/gradle-build-action@v2
with:
arguments: publish
build-root-directory: web3rpc/sdk/client/java/openapi
gradle-version: release-candidate
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}

- name: Publish web3j-ext
if: steps.verify-changed-files.outputs.web3j-ext_any_changed == 'true'
uses: gradle/gradle-build-action@v2
Expand All @@ -120,17 +96,41 @@ jobs:
run: |
cd ethers-ext && npx pnpm --filter "@klaytn/*" -r publish --publish-branch main --no-git-check --access=public && cd -
- name: generate web3rpc javascript sdk
if: steps.verify-changed-files.outputs.web3rpc_any_changed
- name: generate web3rpc-javascript sdk
if: steps.verify-changed-files.outputs.web3rpc_any_changed == 'true'
shell: bash
run: |
cd web3rpc/sdk/client/javascript && bash -x javascript-generate.sh && cd -
- name: publish web3rpc javascript sdk
if: steps.verify-changed-files.outputs.web3rpc_any_changed
- name: publish web3rpc-javascript sdk
if: steps.verify-changed-files.outputs.web3rpc_any_changed == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd web3rpc/sdk/client/javascript/openapi && npx pnpm --filter "@klaytn/*" -r publish --publish-branch main --no-git-check --access=public && cd -
- name: generate web3rpc-java sdk
if: steps.verify-changed-files.outputs.web3rpc_any_changed == 'true'
shell: bash
run: |
cd web3rpc/sdk/client/java && bash -x java-generate.sh && cd -
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}

- name: Publish web3rpc-java sdk
if: steps.verify-changed-files.outputs.web3rpc_any_changed == 'true'
uses: gradle/gradle-build-action@v2
with:
arguments: publish
build-root-directory: web3rpc/sdk/client/java/openapi
gradle-version: release-candidate
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}

0 comments on commit ff190bf

Please sign in to comment.