Skip to content

Commit

Permalink
use solana 1.18 to deploy (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan authored May 21, 2024
1 parent e5dd92b commit 22f6b2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ SOLANA_VERSION=1.17.20
ANCHOR_VERSION=0.27.0
COMMIT_USER_NAME="github-actions[bot]"
COMMIT_USER_EMAIL="41898282+github-actions[bot]@users.noreply.github.com"
DEPLOY_SOLANA_VERSION=1.18.14
8 changes: 5 additions & 3 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Install Solana
uses: metaplex-foundation/actions/install-solana@v1
with:
version: ${{ env.SOLANA_VERSION }}
version: ${{ env.DEPLOY_SOLANA_VERSION }}
cache: ${{ env.CACHE }}

- name: Install Anchor CLI
Expand Down Expand Up @@ -144,7 +144,9 @@ jobs:
solana -v program deploy ./programs/.bin/${{ env.PROGRAM_NAME }}.so \
-u ${{ env.RPC }} \
--program-id ./program-id.json \
-k ./deploy-key.json
-k ./deploy-key.json \
--max-sign-attempts 100 \
--use-rpc
- name: Upgrade IDL
working-directory: ./programs/${{ inputs.program }}
Expand All @@ -155,7 +157,7 @@ jobs:
--provider.cluster ${{ env.RPC }} \
--provider.wallet ../../deploy-key.json \
`solana address -k ../../program-id.json`
rm ../../deploy-key.json
rm ../../program-id.json
rm ./idl.json
Expand Down

0 comments on commit 22f6b2b

Please sign in to comment.