diff --git a/.github/release-drafter-config.yml b/.github/release-drafter-config.yml new file mode 100644 index 0000000..e2d8534 --- /dev/null +++ b/.github/release-drafter-config.yml @@ -0,0 +1,23 @@ +name-template: "v$NEXT_MINOR_VERSION 🌈" +tag-template: "v$NEXT_MINOR_VERSION" +categories: + - title: "🚀 Features" + labels: + - "✨ Enhancement" + - "⚒ Refactor" + - title: "🐛 Bug Fixes" + labels: + - "🐞 Bug" +exclude-labels: + - "📄 Documentation" + - "🌐 DevOps" + - "💄 UI/UX" + - "🏛 Structure" + - "💖 Question" + - "☂️ Umbrella" +change-template: "- $TITLE (#$NUMBER)" +change-title-escapes: '\<*_&' +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/Deployment.yml b/.github/workflows/Deployment.yml index 87ea009..0c92aba 100644 --- a/.github/workflows/Deployment.yml +++ b/.github/workflows/Deployment.yml @@ -6,10 +6,8 @@ name: Deployment on: push: branches: - - cluster_main - - main - tags: - - "v*" + - main-ci-cd-test + # - main jobs: build: diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..4eb9421 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,35 @@ +# Author by chanhihi +# Date 2023.08.22 + +name: Release Drafter + +on: + pull_request: + branches: + - main-ci-cd-test + types: + - closed + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - name: Tag + if: success() + id: tag_version + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + body: ${{ steps.tag_version.outputs.changelog }} + + - uses: release-drafter/release-drafter@v5 + with: + config-name: release-drafter-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}