From ed592a0ba044a84bd4e49e55cdb1eeeb3bc2e940 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 28 Aug 2024 11:32:39 +0800 Subject: [PATCH] feat: add tag workflows. --- .github/workflows/ci.yml | 2 +- .github/workflows/tag.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89e5258..de66af7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: cat > idoc.yml << EOF site: "Web Serve" description: Web Serve is a simple and easy-to-use application designed for quickly setting up and managing local static servers, suitable for a variety of use cases - keywords: Local Static Server,Application,Quick Setup,Server Management,Front-End Development,Real-Time Preview,File Transfer,Data Backup,IoT Devices,Offline Access,Development Efficiency,Cross-Origin Requests,Static Website,Local Sharing,Document Hosting + keywords: Local Static Server,serve,http-server,Application,Quick Setup,Server Management,Front-End Development,Real-Time Preview,File Transfer,Data Backup,IoT Devices,Offline Access,Development Efficiency,Cross-Origin Requests,Static Website,Local Sharing,Document Hosting favicon: assets/logo.png logo: ./assets/logo.png openSource: https://github.com/jaywcjlove/web-serve diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..cb3da2f --- /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