docs: add IBC setup using DIVE CLI to readme (#767) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Contracts After PR Merge to main branch | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
deploy-contracts-uat: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Retrieve the secret and decode it to a file | |
working-directory: contracts/javascore | |
env: | |
UAT_KEYSTORE_B64: ${{ secrets.UAT_KEYSTORE_B64 }} | |
run: | | |
echo $UAT_KEYSTORE_B64 | base64 -d > key.json | |
- name: Deploy all contracts on UAT environment | |
working-directory: contracts/javascore | |
env: | |
UAT_KEYSTORE_PATH: ./key.json | |
UAT_PASSWD: ${{ secrets.UAT_PASSWD }} | |
run: | | |
./gradlew clean build | |
./gradlew optimizedJar | |
./gradlew deployToUat -PdeploymentENV=uat -PkeystoreName=$UAT_KEYSTORE_PATH -PkeystorePass=$UAT_PASSWD |