Skip to content

Use this github action to automate Solana program deployments straight from Github to a governance proposal to upgrade via Squads multisig.

License

Notifications You must be signed in to change notification settings

mrgnlabs/squads-program-upgrade

 
 

Repository files navigation

Cardinal X Squads Program Upgrade Github Action

javscript-action status

Use this github action to automate Solana program deployments straight from Github to a governance proposal to upgrade via Squads multisig.

Usage

You can now consume the action by referencing the v1 branch

uses: actions/[email protected]
with:
  network-url: 'https://api.devnet.solana.com'
  program-multisig: '8QC4Lv3YNAHUmacepqxBKCJY5zx7yrDtQLo9sNFsNnqB'
  program-id: 'prgCo6HJ2bP8xPJ3zwVnfVbqhBbBgY8t7moykr7wzCx'
  program-index: '1'
  buffer: '3eoQzgrBcpVCRUksfTYRh7xJUcq1XwwgycT5AXUQmu1f'
  idl-buffer: '3eoQzgrBcpVCRUksfTYRh7xJUcq1XwwgycT5AXUQmu1f'
  spill-address: 'depThGTDB9Krh5wd3u23Fbr7gtNVn43X5VLr7c2jbew'
  authority: '7CLWzQ3pGwk9TCBnNFVq2p79NGQ8WyhSrrjfXiPN4L9m'
  name: 'TEST'
  keypair: ${{ env.DEPLOYER_KEYPAIR }}

Development

Install the dependencies

yarn

Build

yarn build

Run the tests ✔️

$ yar test
 PASS  tests/main.test.ts (7.477 s)
  ✓ wait 500 ms (504 ms)
  ✓ test runs (6433 ms)
...

Package for distribution

GitHub Actions will run the entry point from the action.yml.

Packaging assembles the code into one file in the dist folder that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.

Run package

yarn package

Since the packaged index.js is run from the dist folder.

git add dist

See the actions tab for runs of this action! 🚀

About

Use this github action to automate Solana program deployments straight from Github to a governance proposal to upgrade via Squads multisig.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • JavaScript 0.5%