Manual sol artifacts #71
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: Manual sol artifacts | |
on: | |
workflow_dispatch: | |
inputs: | |
network: | |
description: 'Network to deploy to' | |
required: true | |
type: choice | |
options: | |
- arbitrum | |
- avalanche | |
- base | |
- bsc | |
- ethereum | |
- flare | |
- mumbai | |
- oasis_sapphire | |
- polygon | |
- songbird | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
network=${{ inputs.network }} | |
echo "etherscan_api_key_secret_name=CI_DEPLOY_${network^^}_ETHERSCAN_API_KEY" >> $GITHUB_ENV | |
echo "rpc_secret_name=CI_DEPLOY_${network^^}_RPC_URL" >> $GITHUB_ENV | |
echo "verifier_secret_name=CI_DEPLOY_${network^^}_VERIFIER" >> $GITHUB_ENV | |
echo "verifier_url_secret_name=CI_DEPLOY_${network^^}_VERIFIER_URL" >> $GITHUB_ENV | |
- run: echo "verifier url ${{ secrets[env.verifier_url_secret_name] || vars[env.verifier_url_secret_name] || '' }}" | |
- run: echo "$GITHUB_ENV" | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: DeterminateSystems/flake-checker-action@main | |
- run: nix develop --command rainix-sol-prelude | |
- run: nix develop --command rainix-rs-prelude | |
- run: nix develop --command i9r-prelude | |
- name: deploy to ${{ inputs.network }} | |
run: nix develop --command rainix-sol-artifacts | |
env: | |
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }} | |
ETH_RPC_URL: ${{ secrets[env.rpc_secret_name] || vars[env.rpc_secret_name] || '' }} | |
ETHERSCAN_API_KEY: ${{ secrets[env.etherscan_api_key_secret_name] || vars[env.etherscan_api_key_secret_name] || ''}} | |
DEPLOY_VERIFIER: ${{ secrets[env.verifier_secret_name] || vars[env.verifier_secret_name] || '' }} | |
DEPLOY_VERIFIER_URL: ${{ secrets[env.verifier_url_secret_name] || vars[env.verifier_url_secret_name] || '' }} |