chore(deps-dev): bump prisma from 5.22.0 to 7.9.0 in /indexer #35
Workflow file for this run
This file contains hidden or 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 | ||
|
Check failure on line 1 in .github/workflows/deploy.yml
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| tags: ["v*.*.*"] | ||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| jobs: | ||
| deploy-testnet: | ||
| if: github.ref_name == 'main' | ||
| name: Deploy to Testnet | ||
| runs-on: ubuntu-latest | ||
| environment: testnet | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: wasm32-unknown-unknown | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y libdbus-1-dev pkg-config libudev-dev | ||
| - name: Install soroban-cli | ||
| run: | | ||
| cargo install soroban-cli --locked | ||
| - name: Build contracts (always runs to check build) | ||
| run: | | ||
| cargo build --release --target wasm32-unknown-unknown --workspace --exclude propfi-integration-tests | ||
| - name: Create .env and configure soroban keys | ||
| if: ${{ secrets.ADMIN_SECRET_KEY != '' }} | ||
| run: | | ||
| cat > .env <<EOF | ||
| ADMIN_KEY_NAME=deployer | ||
| ADMIN_PUBLIC_KEY=${{ secrets.ADMIN_PUBLIC_KEY }} | ||
| STALENESS_THRESHOLD=${{ vars.STALENESS_THRESHOLD || '3600' }} | ||
| EOF | ||
| # Use --secret-key directly with the value | ||
| soroban keys add deployer --secret-key "${{ secrets.ADMIN_SECRET_KEY }}" --network testnet | ||
| - name: Deploy contracts | ||
| if: ${{ secrets.ADMIN_SECRET_KEY != '' }} | ||
| run: | | ||
| ./scripts/deploy.sh --network testnet | ||
| deploy-mainnet: | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| name: Deploy to Mainnet | ||
| runs-on: ubuntu-latest | ||
| environment: mainnet | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: wasm32-unknown-unknown | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y libdbus-1-dev pkg-config libudev-dev | ||
| - name: Install soroban-cli | ||
| run: | | ||
| cargo install soroban-cli --locked | ||
| - name: Build contracts (always runs to check build) | ||
| run: | | ||
| cargo build --release --target wasm32-unknown-unknown --workspace --exclude propfi-integration-tests | ||
| - name: Create .env and configure soroban keys | ||
| if: ${{ secrets.ADMIN_SECRET_KEY != '' }} | ||
| run: | | ||
| cat > .env <<EOF | ||
| ADMIN_KEY_NAME=deployer | ||
| ADMIN_PUBLIC_KEY=${{ secrets.ADMIN_PUBLIC_KEY }} | ||
| STALENESS_THRESHOLD=${{ vars.STALENESS_THRESHOLD || '3600' }} | ||
| USDC_CONTRACT_ID=${{ secrets.USDC_CONTRACT_ID }} | ||
| XLM_CONTRACT_ID=${{ secrets.XLM_CONTRACT_ID }} | ||
| ORACLE_PUBLIC_KEYS=${{ secrets.ORACLE_PUBLIC_KEYS }} | ||
| ORACLE_WEIGHTS=${{ vars.ORACLE_WEIGHTS || '' }} | ||
| EOF | ||
| # Use --secret-key directly with the value | ||
| soroban keys add deployer --secret-key "${{ secrets.ADMIN_SECRET_KEY }}" --network mainnet | ||
| - name: Deploy contracts | ||
| if: ${{ secrets.ADMIN_SECRET_KEY != '' }} | ||
| run: | | ||
| ./scripts/deploy.sh --network mainnet --confirm | ||