Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .github/workflows/propose-program-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
type: choice
options: [devnet, mainnet]
default: devnet
ref:
description: Commit SHA, release tag, or branch of the program to propose. Defaults to the ref the workflow runs on.
default: ""
proposal_name:
description: Squads proposal memo
default: Upgrade delegation program
Expand All @@ -36,6 +39,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
persist-credentials: false

- uses: magicblock-labs/.github/actions/squads-program-upgrade@2789218e3d6332e244eb2aa55b87cfb9c10c5a7f
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cd tests/integration && anchor test

Upgrades go through a Squads multisig whose vault holds the upgrade authority. CI only proposes them.

1. Run **Actions → Propose Program Upgrade** with the target `cluster` (start with `dry_run`). It builds `dlp` verifiably, uploads a buffer and opens a Squads proposal that upgrades the program and records its verified build. The job summary shows the proposal number and the executable hash.
1. Run **Actions → Propose Program Upgrade** with the target `cluster` (start with `dry_run`). It builds `dlp` verifiably, uploads a buffer and opens a Squads proposal that upgrades the program and records its verified build. The job summary shows the proposal number and the executable hash. Set `ref` to a commit SHA, release tag or branch to build that source instead of the one the workflow is run from.
2. Members review and approve:
- **mainnet:** in the [Squads app](https://app.squads.so);
- **devnet:** with the shared command-line tools, run locally with your own keypair:
Expand Down
Loading