-
Notifications
You must be signed in to change notification settings - Fork 81
44 lines (40 loc) · 1.2 KB
/
deploy-buffer.yaml
File metadata and controls
44 lines (40 loc) · 1.2 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
44
name: Deploy Buffer
env:
HUSKY: 0
on:
workflow_dispatch:
inputs:
program_name:
description: 'Program name'
required: true
type: string
program_id:
description: 'Program ID'
required: true
type: string
rpc_url:
description: 'RPC URL'
required: true
type: string
jobs:
deploy-buffer:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: metadaoproject/setup-anchor@v3.2
with:
solana-cli-version: '1.17.16'
anchor-version: '0.29.0'
- run: echo "$DEPLOYER_KEYPAIR" > deployer-keypair.json && chmod 600 deployer-keypair.json
shell: bash
env:
DEPLOYER_KEYPAIR: ${{ secrets.DEPLOYER_KEYPAIR }}
- run: solana-keygen new -s -o buffer-keypair --no-bip39-passphrase
shell: bash
- name: Deploy Buffer
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 10
shell: bash
command: solana program write-buffer --max-sign-attempts 50 --with-compute-unit-price 100 --use-rpc --buffer ./buffer-keypair ./verifiable-builds/${{ inputs.program_name }}.so -u $NETWORK