feat: add base and base_goerli for ankr provider (#2172) #154
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: Generate Groups and Send on-chain (staging) | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
jobs: | |
generate-groups: | |
name: Generate Groups | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: https://hub.staging.zikies.io/doc | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Workflow wait for previous run | |
uses: ahmadnassri/action-workflow-queue@v1 | |
with: | |
timeout: 7200000 | |
delay: 60000 | |
- name: Generate groups | |
uses: ./.github/actions/generate-groups | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
role-to-assume: ${{ secrets.AWS_EXECUTION_ROLE }} | |
sh-s3-data-bucket-name: "sismo-staging-hub-data" | |
sh-s3-data-endpoint: "https://sismo-staging-hub-data.s3.eu-west-1.amazonaws.com" | |
sh-dynamodb-global-table-name: sismo-staging-hub-global-table | |
sh-default-configuration-env: staging | |
sh-first-generation-only: "yes" | |
sh-last-generation-time-interval: "43200" | |
decentralized-subgraph-api-key: ${{ secrets.DECENTRALIZED_SUBGRAPH_API_KEY }} | |
google-application-credentials: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
sh-ignore-resolving-errors: "true" | |
hive-api-key: ${{ secrets.HIVE_API_KEY }} | |
json-rpc-url: ${{ secrets.JSON_RPC_URL }} | |
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
transpose-api-key: ${{ secrets.TRANSPOSE_API_KEY }} | |
alchemy-api-key: ${{ secrets.ALCHEMY_API_KEY }} | |
dune-api-key: ${{secrets.DUNE_API_KEY}} | |
gitcoin-api-key: ${{ secrets.GITCOIN_API_KEY }} | |
ankr-api-key: ${{ secrets.ANKR_API_KEY }} | |
github-token: ${{ secrets.SH_GITHUB_TOKEN }} | |
twitter-api-key: ${{ secrets.TWITTER_API_KEY }} | |
telegram-api-hash: ${{ secrets.TELEGRAM_API_HASH }} | |
telegram-api-id: ${{ secrets.TELEGRAM_API_ID }} | |
telegram-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
telegram-bot-session: ${{ secrets.TELEGRAM_BOT_SESSION }} | |
roci-api-key: ${{ secrets.ROCI_API_KEY }} | |
compute-registry-tree: | |
needs: generate-groups | |
name: Compute Registry Tree | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: https://hub.staging.zikies.io/doc | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Workflow wait for previous run | |
uses: ahmadnassri/action-workflow-queue@v1 | |
with: | |
timeout: 7200000 | |
delay: 60000 | |
- name: Compute registry tree | |
uses: ./.github/actions/send-on-chain | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
role-to-assume: ${{ secrets.AWS_EXECUTION_ROLE }} | |
sh-s3-data-bucket-name: "sismo-staging-hub-data" | |
sh-s3-data-endpoint: "https://sismo-staging-hub-data.s3.eu-west-1.amazonaws.com" | |
sh-dynamodb-global-table-name: sismo-staging-hub-global-table | |
sh-default-configuration-env: staging | |
sh-relay-defender-api-keys: ${{ secrets.SH_RELAY_DEFENDER_API_KEYS }} | |
roots-registry-owner-mnemonic: ${{ secrets.ROOTS_REGISTRY_OWNER_MNEMONIC }} | |
sh-registry-tree-networks: goerli mumbai | |
# Run it in dry run mode to compute all cache | |
sh-additional-params: "--dry-run" | |
# Send on chain in parallel, all except goerli (which need to arrive in last position) | |
send-on-chain: | |
needs: compute-registry-tree | |
name: Send on-chain | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: https://hub.staging.zikies.io/doc | |
strategy: | |
matrix: | |
network: [goerli, mumbai] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Send on chain | |
uses: ./.github/actions/send-on-chain | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
role-to-assume: ${{ secrets.AWS_EXECUTION_ROLE }} | |
sh-s3-data-bucket-name: "sismo-staging-hub-data" | |
sh-s3-data-endpoint: "https://sismo-staging-hub-data.s3.eu-west-1.amazonaws.com" | |
sh-dynamodb-global-table-name: sismo-staging-hub-global-table | |
sh-default-configuration-env: staging | |
sh-relay-defender-api-keys: ${{ secrets.SH_RELAY_DEFENDER_API_KEYS }} | |
roots-registry-owner-mnemonic: ${{ secrets.ROOTS_REGISTRY_OWNER_MNEMONIC }} | |
sh-last-generation-time-interval: "43200" | |
sh-registry-tree-networks: ${{ matrix.network }} | |
send-on-chain-goerli: | |
name: Send on-chain (goerli) | |
needs: send-on-chain | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: https://hub.staging.zikies.io/doc | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Workflow wait for previous run | |
uses: ahmadnassri/action-workflow-queue@v1 | |
with: | |
timeout: 7200000 | |
delay: 60000 | |
- name: Send on chain (Goerli) | |
uses: ./.github/actions/send-on-chain | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
role-to-assume: ${{ secrets.AWS_EXECUTION_ROLE }} | |
sh-s3-data-bucket-name: "sismo-staging-hub-data" | |
sh-s3-data-endpoint: "https://sismo-staging-hub-data.s3.eu-west-1.amazonaws.com" | |
sh-dynamodb-global-table-name: sismo-staging-hub-global-table | |
sh-default-configuration-env: staging | |
sh-relay-defender-api-keys: ${{ secrets.SH_RELAY_DEFENDER_API_KEYS }} | |
roots-registry-owner-mnemonic: ${{ secrets.ROOTS_REGISTRY_OWNER_MNEMONIC }} | |
sh-last-generation-time-interval: "43200" | |
sh-registry-tree-networks: goerli |