Skip to content

Commit

Permalink
chore: 릴리즈 태그 관련 워크플로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Jan 13, 2024
1 parent e594211 commit 611a3e7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@cchuyong
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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 }}

0 comments on commit 611a3e7

Please sign in to comment.