Skip to content

Commit

Permalink
feat: release 생성하는 플러그인을 ncipollo/release-action으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqudi committed Jan 13, 2024
1 parent 7ff37ca commit 936e4a4
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,28 @@ on:
push:
tags:
- v*.*.*

jobs:
create-release:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: Get branch names
id: tag_version
uses: tj-actions/[email protected]
- name: Extract version from branch name
run: echo "TAG=$(echo '${{ steps.tag_version.outputs.tag }}' | egrep -o 'v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" >> $GITHUB_ENV

- name: GitHub project release 업데이트
id: create_release
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
tag: ${{ env.TAG }}
name: Release ${{ env.TAG }}
body: ${{ steps.tag_version.outputs.changelog }}

create-build:
name: Create ${{ matrix.target }} build
Expand Down

0 comments on commit 936e4a4

Please sign in to comment.