Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ jobs:
install -m 600 /dev/null /tmp/deployer.json
printf '%s' "$DEPLOYER_KEYPAIR" > /tmp/deployer.json

- name: Derive deployer pubkey
id: deployer
run: |
PUBKEY=$(solana-keygen pubkey /tmp/deployer.json)
echo "pubkey=$PUBKEY" >> "$GITHUB_OUTPUT"

- name: Generate IDL
run: just generate-idl

Expand All @@ -74,7 +80,7 @@ jobs:
program-id: ${{ env.PROGRAM_ID }}
rpc-url: ${{ env.RPC_URL }}
keypair: ${{ env.DEPLOYER_KEYPAIR }}
buffer-authority-address: ${{ inputs.network == 'mainnet' && env.SQUADS_VAULT || '' }}
buffer-authority-address: ${{ inputs.network == 'mainnet' && env.SQUADS_VAULT || steps.deployer.outputs.pubkey }}
priority-fee: ${{ inputs.priority-fee }}

# ============================================
Expand Down Expand Up @@ -124,7 +130,7 @@ jobs:
with:
idl-path: idl/subscriptions.json
rpc-url: ${{ env.RPC_URL }}
keypair: /tmp/deployer.json
keypair: ${{ env.DEPLOYER_KEYPAIR }}
buffer-authority: ${{ env.SQUADS_VAULT }}
priority-fees: ${{ inputs.priority-fee }}

Expand All @@ -136,7 +142,7 @@ jobs:
program: ${{ env.PROGRAM }}
program-id: ${{ env.PROGRAM_ID }}
rpc-url: ${{ env.RPC_URL }}
keypair: /tmp/deployer.json
keypair: ${{ env.DEPLOYER_KEYPAIR }}
repo-url: ${{ env.REPO_URL }}
network: mainnet
mount-path: program
Expand Down
Loading