-
Notifications
You must be signed in to change notification settings - Fork 3
95 lines (85 loc) · 3.69 KB
/
manual-sol-artifacts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Manual sol artifacts
on:
workflow_dispatch:
inputs:
network:
description: 'Network to deploy to'
required: true
type: choice
options:
- arbitrum
- arbitrum_sepolia
- avalanche
- base
- base_sepolia
- bsc
- ethereum
- flare
- mumbai
- oasis_sapphire
- polygon
- sepolia
- songbird
- amoy
suite:
description: 'Suite to deploy'
required: true
type: choice
options:
- ownable-oracle-vault
- flare-ftso-oracle-price-vault
- implementations
receipt-vault-asset:
description: 'Asset that is deposited into deployed receipt vault.'
required: false
type: string
receipt-vault-name:
description: 'Name of the share token for the deployed receipt vault.'
required: false
type: string
receipt-vault-symbol:
description: 'Symbol of the share token for the deployed receipt vault.'
required: false
type: string
owner:
description: 'Owner of any ownable contracts deployed.'
required: false
type: string
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: |
network=${{ inputs.network }}
echo "clone_factory_name=CI_DEPLOY_${network^^}_CLONE_FACTORY_ADDRESS" >> $GITHUB_ENV
echo "erc20_price_oracle_vault_implementation_name=CI_DEPLOY_${network^^}_ERC20_PRICE_ORACLE_VAULT_IMPLEMENTATION_ADDRESS" >> $GITHUB_ENV
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 "verify_secret_name=CI_DEPLOY_${network^^}_VERIFY" >> $GITHUB_ENV
echo "verifier_secret_name=CI_DEPLOY_${network^^}_VERIFIER" >> $GITHUB_ENV
echo "verifier_url_secret_name=CI_DEPLOY_${network^^}_VERIFIER_URL" >> $GITHUB_ENV
echo "metaboard_address_secret_name=CI_DEPLOY_${network^^}_METABOARD_ADDRESS" >> $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
- name: deploy to ${{ inputs.network }}
run: nix develop -c rainix-sol-artifacts
env:
DEPLOYMENT_SUITE: ${{ inputs.suite }}
RECEIPT_VAULT_ASSET: ${{ inputs.receipt-vault-asset || '' }}
RECEIPT_VAULT_NAME: ${{ inputs.receipt-vault-name || '' }}
RECEIPT_VAULT_SYMBOL: ${{ inputs.receipt-vault-symbol || '' }}
OWNER_ADDRESS: ${{ inputs.owner || '' }}
CLONE_FACTORY : ${{ vars[env.clone_factory_name] || '' }}
ERC20_PRICE_ORACLE_VAULT_IMPLEMENTATION: ${{ vars[env.erc20_price_oracle_vault_implementation_name] || '' }}
DEPLOY_BROADCAST: '1'
DEPLOYMENT_KEY: ${{ secrets.CI_PRIVATE_KEY }}
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_VERIFY: ${{ secrets[env.verify_secret_name] || vars[env.verify_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] || '' }}
DEPLOY_METABOARD_ADDRESS: ${{ secrets[env.metaboard_address_secret_name] || vars[env.metaboard_address_secret_name] || '' }}