From 611a3e7cbf51b8dd3dbcc4f52e162ace09e21da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=EC=98=81=EB=AF=BC?= Date: Sun, 14 Jan 2024 00:37:18 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=A6=B4=EB=A6=AC=EC=A6=88=20?= =?UTF-8?q?=ED=83=9C=EA=B7=B8=20=EA=B4=80=EB=A0=A8=20=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/CODEOWNERS | 1 + .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/release.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..c6d35f6 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +@cchuyong \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..808447c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: 릴리즈 태그 만들기 +on: + pull_request: + branches: + - main + types: [ closed ] +jobs: + create-tag: + runs-on: ubuntu-latest + steps: + - name: 브랜치 가져오기 + uses: actions/checkout@v2 + + - name: 브랜치명 추출하기 + id: branch-name + uses: tj-actions/branch-names@v4.9 + + - name: 버전 정보 추출 + run: echo "TAG=$(echo '${{ steps.branch-name.outputs.current_branch }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" >> $GITHUB_ENV + id: extract_version_name + + - name: Release 생성 + if: github.event.pull_request.merged == true + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.TAG }} + release_name: ${{ env.TAG }} \ No newline at end of file