-
Notifications
You must be signed in to change notification settings - Fork 152
35 lines (30 loc) · 976 Bytes
/
Copy pathrelease.yml
File metadata and controls
35 lines (30 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 推送 tag(如 v3.4.1)时自动创建 GitHub Release
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version from tag
id: tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: v${{ steps.tag.outputs.VERSION }}
body: |
## sol-trade-sdk ${{ steps.tag.outputs.VERSION }}
Rust SDK to interact with the dex trade Solana program (Pump.fun, Raydium, etc.).
- **Cargo**: `sol-trade-sdk = { git = "https://github.com/${{ github.repository }}", tag = "v${{ steps.tag.outputs.VERSION }}" }`
draft: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}