Skip to content

Version tag로 release 자동 생성 #106

@cskime

Description

@cskime

작업 목표가 무엇인가요?

  • Version tag를 push하면 해당 tag를 사용해서 release를 자동 생성하도록 설정합니다.

어떤 작업을 할 예정인가요?

  • version tag를 올리면 release를 자동 생성해 주는 workflow 추가

참고자료 (선택)

name: Auto Generate Release

on:
  push:
    tags:
      - 'v*' # Trigger on any new tag starting with 'v'

jobs:
  create_release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0 # Needed for tools that analyze commit history

      - name: Generate Release Notes
        id: generate_notes
        uses: release-drafter/release-drafter@v5
        with:
          config-name: release-drafter.yml # Optional: for custom configuration
          # You might need to configure a GITHUB_TOKEN with appropriate permissions

      - name: Create Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/') # Ensure it's a tag push
        with:
          tag_name: ${{ github.ref_name }}
          name: Release ${{ github.ref_name }}
          body: ${{ steps.generate_notes.outputs.body }} # Use generated notes
          draft: false
          prerelease: false # Set to true for pre-releases

Metadata

Metadata

Assignees

Labels

config프로젝트 설정 (빌드, 패키지 관련 작업 등)

Type

No type
No fields configured for issues without a type.

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions