forked from Fundable-Protocol/stellar_client_os
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 903 Bytes
/
Copy pathdeploy-test.yml
File metadata and controls
38 lines (32 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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