Skip to content

Commit

Permalink
Merge pull request #294 from MeeTeamIdle/278-feat-release-tag-자동화-설정
Browse files Browse the repository at this point in the history
feat: release-tag 자동화 설정
  • Loading branch information
prgmr99 authored Nov 25, 2024
2 parents 28e0969 + 0cdd500 commit 8560527
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: git push into another repo to deploy to vercel
on:
push:
branches:
- release-1.0
- develop
- main

jobs:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Tag
on:
push:
branches:
- master
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 }}

0 comments on commit 8560527

Please sign in to comment.