Switch back to using GC Bucket for migrated contracts on Celo
@@ -256,18 +256,19 @@ jobs:
- name: Install dependencies
run: npm ci
- - name: Get upstream packages' versions
- uses: keep-network/upstream-builds-query@v1
- id: upstream-builds-query
+ - uses: google-github-actions/setup-gcloud@v0.2.0
with:
- upstream-builds: ${{ github.event.inputs.upstream_builds }}
- query: |
- keep-ecdsa-solidity-version = github.com/keep-network/keep-ecdsa/solidity#version
+ project_id: ${{ env.GOOGLE_PROJECT_ID }}
+ service_account_key: ${{ secrets.KEEP_TEST_GCR_JSON_KEY }}
+
+ - name: Fetch external contracts artifacts
+ env:
+ CONTRACT_DATA_BUCKET_DIR: keep-ecdsa-celo
+ ETH_NETWORK_ID: ${{ env.NETWORK_ID }}
+ run: ./scripts/ci-provision-external-contracts.sh
- name: Resolve latest contracts
- run: |
- npm install --save-exact \
- @keep-network/keep-ecdsa@${{ steps.upstream-builds-query.outputs.keep-ecdsa-solidity-version }}
+ run: npm update @keep-network/keep-ecdsa
- name: Migrate contracts
env:
@@ -275,4 +276,9 @@ jobs:
${{ secrets.KEEP_TEST_CELO_CONTRACT_OWNER_PRIVATE_KEY }}
run: npx truffle migrate --reset --network $TRUFFLE_NETWORK
+ - name: Upload contract data
+ run: |
+ cd build/contracts
+ gsutil -m cp * gs://${{ env.CONTRACT_DATA_BUCKET }}/tbtc-celo
+
# TODO: add NPM publish step once it's clear how artifacts should be tagged
