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 cd51bee commit e079ec3Copy full SHA for e079ec3
.github/workflows/cd.yml
@@ -2,7 +2,8 @@ name: CD
2
3
on:
4
release:
5
- types: [published]
+ # types: [published]
6
+ types: [published, created, edited]
7
workflow_dispatch:
8
9
jobs:
@@ -17,9 +18,8 @@ jobs:
17
18
19
- name: Update version from tag
20
run: |
- VERSION=${GITHUB_REF#refs/tags/v}
21
- echo $VERSION
22
- sed -i 's/^version = .*/version = "'$VERSION'"/' Cargo.toml
+ echo "Tag: $GITHUB_REF_NAME"
+ sed -i "s/^version = \".*\"/version = \"$GITHUB_REF_NAME\"/" Cargo.toml
23
24
- name: Publish to crates.io
25
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
0 commit comments