ci: tag to release

This commit is contained in:
github-actions[bot] 2023-12-02 19:26:46 +08:00
parent 7535a17458
commit b2b4e007ac

29
.github/workflows/tag.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Tag to Release
on:
workflow_dispatch:
inputs:
version:
description: 'Enter the version number (e.g., v1.2.3)'
required: true
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'Meta'
- name: Set up Git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
- name: Create Tag
run: |
version=${{ github.event.inputs.version }}
git tag $version
git push origin $version