Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solana-nft-programs/squads-program-upgrade
Use this github action to automate Solana program deployments straight from Github to a governance proposal to upgrade via Squads multisig.
https://github.com/solana-nft-programs/squads-program-upgrade
ci solana
Last synced: 3 months ago
JSON representation
Use this github action to automate Solana program deployments straight from Github to a governance proposal to upgrade via Squads multisig.
- Host: GitHub
- URL: https://github.com/solana-nft-programs/squads-program-upgrade
- Owner: solana-nft-programs
- License: mit
- Created: 2022-10-14T06:41:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T07:43:52.000Z (11 months ago)
- Last Synced: 2024-10-11T23:33:23.174Z (4 months ago)
- Topics: ci, solana
- Language: TypeScript
- Homepage:
- Size: 11.3 MB
- Stars: 9
- Watchers: 2
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```yaml
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
```bash
yarn
```Build
```bash
yarn build
```Run the tests :heavy_check_mark:
```bash
$ 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
```bash
yarn package
```Since the packaged index.js is run from the dist folder.
```bash
git add dist
```See the [actions tab](https://github.com/actions/squads-program-upgrade/actions) for runs of this action! :rocket: