We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ef03c commit 081d222Copy full SHA for 081d222
.github/workflows/publish.yml
@@ -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
30
+ cache: true
31
+ version: ${{ env.SOLANA_VERSION }}
32
+ - name: Prepublish
33
+ run: bash scripts/prepublish.sh
0 commit comments