forked from QuorumProof/QuorumProof
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.03 KB
/
deploy.yml
File metadata and controls
43 lines (36 loc) · 1.03 KB
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
39
40
41
42
43
name: Deploy Testnet
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
name: Deploy to Testnet
runs-on: ubuntu-latest
environment: testnet
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Stellar CLI
run: cargo install stellar-cli --locked
- name: Build contracts
run: ./scripts/build.sh
- name: Deploy to testnet
env:
STELLAR_NETWORK: testnet
STELLAR_RPC_URL: ${{ secrets.STELLAR_RPC_URL }}
STELLAR_SECRET_KEY: ${{ secrets.STELLAR_SECRET_KEY }}
run: |
stellar keys add deployer --secret-key "$STELLAR_SECRET_KEY"
./scripts/deploy_testnet.sh