Skip to content

Commit e079ec3

Browse files
committed
fix: debugging
1 parent cd51bee commit e079ec3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: CD
22

33
on:
44
release:
5-
types: [published]
5+
# types: [published]
6+
types: [published, created, edited]
67
workflow_dispatch:
78

89
jobs:
@@ -17,9 +18,8 @@ jobs:
1718

1819
- name: Update version from tag
1920
run: |
20-
VERSION=${GITHUB_REF#refs/tags/v}
21-
echo $VERSION
22-
sed -i 's/^version = .*/version = "'$VERSION'"/' Cargo.toml
21+
echo "Tag: $GITHUB_REF_NAME"
22+
sed -i "s/^version = \".*\"/version = \"$GITHUB_REF_NAME\"/" Cargo.toml
2323
2424
- name: Publish to crates.io
2525
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}

0 commit comments

Comments
 (0)