Skip to content

Commit 39fff8b

Browse files
authored
Merge pull request #465 from AgoraIO/dev/create-tag-workflow
[FEAT] create tag yml
2 parents da1600c + d3a9ed0 commit 39fff8b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/create-tag.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Create Tag
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch or ref to create tag from'
8+
required: true
9+
type: string
10+
tag:
11+
description: 'Tag name to create (e.g. v1.0.0)'
12+
required: true
13+
type: string
14+
15+
jobs:
16+
create-tag:
17+
name: Create and push tag
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
ref: ${{ inputs.branch }}
26+
fetch-depth: 0
27+
28+
- name: Create and push tag
29+
run: |
30+
git config user.name "github-actions[bot]"
31+
git config user.email "github-actions[bot]@users.noreply.github.com"
32+
git tag "${{ inputs.tag }}"
33+
git push origin "${{ inputs.tag }}"

0 commit comments

Comments
 (0)