Add campaign sponsor flow and matching funds (#769) #203
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 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 |