Skip to content

feat: tree milestone timeline, verifier stake slashing, architecture … #204

feat: tree milestone timeline, verifier stake slashing, architecture …

feat: tree milestone timeline, verifier stake slashing, architecture … #204

Workflow file for this run

name: Deploy to Stellar Testnet
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
contracts/target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Build contracts
working-directory: contracts
run: cargo build --release
- name: Deploy to Stellar Testnet
env:
SECRET_KEY: ${{ secrets.TESTNET_SECRET_KEY }}
RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
run: |
echo "Deploying contracts to testnet..."
chmod +x scripts/deploy.sh
./scripts/deploy.sh