Added Github workflow for continuous deployment of contracts to Neutron testnet #2
Workflow file for this run
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 latest contracts on Neutron testnet | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
jobs: | |
deploy-latest-contracts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Download Neutron binaries | |
run: | | |
curl -L -o neutrond https://github.com/neutron-org/neutron/releases/download/v5.0.2/neutrond-linux-amd64 | |
chmod +x neutrond | |
- name: Deploy latest contracts | |
env: | |
TESTNET_MNEMONIC: ${{ secrets.E2E_TESTS_MNEMONIC }} | |
run: | | |
CONFIG_FILE="./tools/deployment/config_testnet.json" | |
TX_SENDER_WALLET=$(jq -r '.tx_sender_wallet' $CONFIG_FILE) | |
echo $TESTNET_MNEMONIC | neutrond keys add $TX_SENDER_WALLET --keyring-backend test --recover | |
chmod +x ./tools/deployment/setup.sh | |
bash ./tools/deployment/setup.sh $CONFIG_FILE |