Skip to content

Commit f47c07e

Browse files
committed
ci: add tag workflows config.
1 parent dbb3548 commit f47c07e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/tag.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
# branches:
5+
# - main
6+
tags:
7+
- v*
8+
9+
jobs:
10+
tags:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Extract version from tag
18+
id: extract_version
19+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
20+
21+
- name: Create Tag
22+
id: create_tag
23+
uses: jaywcjlove/create-tag-action@main
24+
with:
25+
version: ${{ env.VERSION }}
26+
release: true

0 commit comments

Comments
 (0)