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 7d42588 commit eccbe51Copy full SHA for eccbe51
1 file changed
.github/workflows/publish.yml
@@ -4,13 +4,17 @@ on:
4
push:
5
tags:
6
- 'v*.*.*'
7
+ # Add this to allow manual triggering from GitHub UI
8
+ workflow_dispatch:
9
10
jobs:
11
publish:
12
name: Publish to crates.io
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v3
16
+ with:
17
+ fetch-depth: 0 # Get all history for tags
18
19
- name: Set up Rust
20
uses: actions-rs/toolchain@v1
@@ -22,6 +26,8 @@ jobs:
22
26
run: |
23
27
VERSION=${GITHUB_REF#refs/tags/v}
24
28
CARGO_VERSION=$(grep -m 1 "version" jup-ag-sdk/Cargo.toml | sed 's/.*= "//' | sed 's/".*//')
29
+ echo "Tag version: $VERSION"
30
+ echo "Cargo version: $CARGO_VERSION"
25
31
if [ "$VERSION" != "$CARGO_VERSION" ]; then
32
echo "Error: Git tag ($VERSION) doesn't match Cargo.toml version ($CARGO_VERSION)"
33
exit 1
0 commit comments