Skip to content

Commit eccbe51

Browse files
committed
Added auto tag file
1 parent 7d42588 commit eccbe51

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ on:
44
push:
55
tags:
66
- 'v*.*.*'
7+
# Add this to allow manual triggering from GitHub UI
8+
workflow_dispatch:
79

810
jobs:
911
publish:
1012
name: Publish to crates.io
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0 # Get all history for tags
1418

1519
- name: Set up Rust
1620
uses: actions-rs/toolchain@v1
@@ -22,6 +26,8 @@ jobs:
2226
run: |
2327
VERSION=${GITHUB_REF#refs/tags/v}
2428
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"
2531
if [ "$VERSION" != "$CARGO_VERSION" ]; then
2632
echo "Error: Git tag ($VERSION) doesn't match Cargo.toml version ($CARGO_VERSION)"
2733
exit 1

0 commit comments

Comments
 (0)