Skip to content

chore(deps-dev): bump prisma from 5.22.0 to 7.9.0 in /indexer #35

chore(deps-dev): bump prisma from 5.22.0 to 7.9.0 in /indexer

chore(deps-dev): bump prisma from 5.22.0 to 7.9.0 in /indexer #35

Workflow file for this run

name: Deploy

Check failure on line 1 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

(Line: 34, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ADMIN_SECRET_KEY != '', (Line: 44, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ADMIN_SECRET_KEY != '', (Line: 70, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ADMIN_SECRET_KEY != '', (Line: 84, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ADMIN_SECRET_KEY != ''
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