Skip to content

Squads program upgrade

Actions
Github action to deploy a squads program upgrade on Solana
v0.2.4
Latest
Star (10)

Tags

 (1)

Squads Program Upgrade Github Action

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! 🚀

Squads program upgrade is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to deploy a squads program upgrade on Solana
v0.2.4
Latest

Tags

 (1)

Squads program upgrade is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.