diff --git a/.github/workflows/prod-cd.yml b/.github/workflows/prod-cd.yml index fe015722..ae9a14ed 100644 --- a/.github/workflows/prod-cd.yml +++ b/.github/workflows/prod-cd.yml @@ -59,4 +59,22 @@ jobs: key: ${{ secrets.PROD_SERVER_KEY }} script: | cd ~ - ./deploy.sh \ No newline at end of file + ./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 }}