From 0803e7283ad4eaf97217a9ec3cf499d6dc081e34 Mon Sep 17 00:00:00 2001 From: Jiyoung Kim Date: Mon, 27 Jun 2022 21:17:14 +0900 Subject: [PATCH] Create release-tag.yml --- .github/workflows/release-tag.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release-tag.yml diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml new file mode 100644 index 0000000..c5db4c9 --- /dev/null +++ b/.github/workflows/release-tag.yml @@ -0,0 +1,20 @@ +name: Release Tag +on: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: 버전 정보 추출 + run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" + id: extract_version_name + - name: Release 생성 + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.extract_version_name.outputs.version }} + release_name: ${{ steps.extract_version_name.outputs.version }}