From f47c07e39f3a4d04a507184f6c7875f092cb2917 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 11 Oct 2024 01:58:00 +0800 Subject: [PATCH] ci: add tag workflows config. --- .github/workflows/tag.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 00000000..cb3da2f7 --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,26 @@ +name: CI +on: + push: + # branches: + # - main + tags: + - v* + +jobs: + tags: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Extract version from tag + id: extract_version + run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + + - name: Create Tag + id: create_tag + uses: jaywcjlove/create-tag-action@main + with: + version: ${{ env.VERSION }} + release: true \ No newline at end of file