Skip to content

Commit 081d222

Browse files
committed
publish script
1 parent f0ef03c commit 081d222

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
NIGHTLY_TOOLCHAIN: nightly-2024-11-22
8+
SOLANA_VERSION: 2.2.0
9+
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
10+
11+
jobs:
12+
pre_publish:
13+
name: Prepublish
14+
runs-on: ubuntu-latest
15+
shell: bash
16+
if: github.ref == 'refs/heads/main'
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.cargo/registry
24+
~/.cargo/git
25+
key: cargo-build-sbf-${{ hashFiles('**/Cargo.lock') }}
26+
restore-keys: |
27+
cargo-build-sbf-
28+
- uses: metaplex-foundation/actions/install-solana@v1
29+
with:
30+
cache: true
31+
version: ${{ env.SOLANA_VERSION }}
32+
- name: Prepublish
33+
run: bash scripts/prepublish.sh

0 commit comments

Comments
 (0)