Skip to content

Commit dfd5b81

Browse files
committed
[add] add workflow for creating the tag
1 parent c2c8810 commit dfd5b81

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/tag.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tag
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- Cargo.toml
9+
10+
jobs:
11+
tag:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 2
17+
- uses: salsify/action-detect-and-tag-new-version@v2
18+
id: detect_tag
19+
with:
20+
create-tag: true
21+
version-command: cargo read-manifest | jq -r .version

0 commit comments

Comments
 (0)