mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-09 02:41:22 +08:00
ci: tag to release
This commit is contained in:
parent
7535a17458
commit
b2b4e007ac
29
.github/workflows/tag.yml
vendored
Normal file
29
.github/workflows/tag.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user