Skip to content

Commit

Permalink
[feat] add auto creation of release (#255)
Browse files Browse the repository at this point in the history
* [feat] add auto creation of release

* [refac] add blank


Co-authored-by: kgy1008 <[email protected]>
  • Loading branch information
PicturePark1101 and kgy1008 committed Jan 17, 2025
1 parent 09b0117 commit 20e2a04
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,22 @@ jobs:
key: ${{ secrets.PROD_SERVER_KEY }}
script: |
cd ~
./deploy.sh
./deploy.sh
create-release :
needs: CD
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: 버전 정보 추출
run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o 'v[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.GIT_SECRET }}
with:
tag_name: ${{ steps.extract_version_name.outputs.version }}
release_name: ${{ steps.extract_version_name.outputs.version }}

0 comments on commit 20e2a04

Please sign in to comment.