Skip to content

Commit d0d2393

Browse files
committed
publish script
1 parent f0ef03c commit d0d2393

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+
if: github.ref == 'refs/heads/main'
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/cache@v4
20+
with:
21+
path: |
22+
~/.cargo/registry
23+
~/.cargo/git
24+
key: cargo-build-sbf-${{ hashFiles('**/Cargo.lock') }}
25+
restore-keys: |
26+
cargo-build-sbf-
27+
- uses: metaplex-foundation/actions/install-solana@v1
28+
with:
29+
cache: true
30+
version: ${{ env.SOLANA_VERSION }}
31+
- name: Prepublish
32+
shell: bash
33+
run: bash scripts/prepublish.sh

0 commit comments

Comments
 (0)