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 d0d2393Copy full SHA for d0d2393
.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
+ 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
29
+ cache: true
30
+ version: ${{ env.SOLANA_VERSION }}
31
+ - name: Prepublish
32
+ shell: bash
33
+ run: bash scripts/prepublish.sh
0 commit comments