Przeglądaj źródła

Github Action: Add release-drafter (#54)

Md. Emruz Hossain 4 lat temu
rodzic
commit
6f96ca1e15
2 zmienionych plików z 45 dodań i 0 usunięć
  1. 31 0
      .github/release-drafter.yml
  2. 14 0
      .github/workflows/draft-release.yml

+ 31 - 0
.github/release-drafter.yml

@@ -0,0 +1,31 @@
+name-template: 'v$RESOLVED_VERSION'
+tag-template: 'v$RESOLVED_VERSION'
+template: |
+  I am very excited to announce Toha 'v$RESOLVED_VERSION'. Thanks to $CONTRIBUTORS	for their valuable contribution in this release.
+  
+  The following things has been changed since last release:
+  $CHANGES
+categories:
+  - title: 'Breaking Changes'
+    label: 'breaking-change'
+  - title: 'New Features & Enhancements'
+    labels:
+    - 'feature'
+    - 'enhancement'
+  - title: 'Bug Fixes'
+    labels:
+      - 'bug'
+      - 'bug-fix'
+
+version-resolver:
+  major:
+    labels:
+      - 'breaking'
+  minor:
+    labels:
+      - 'feature'
+      - 'enhancement'
+  patch:
+    labels:
+      - 'bug'
+      - 'bug-fix'

+ 14 - 0
.github/workflows/draft-release.yml

@@ -0,0 +1,14 @@
+name: Release Drafter
+
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  update_release_draft:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: release-drafter/release-drafter@master
+        env:
+          GITHUB_TOKEN: ${{ secrets.ACTION_DEPLOY_KEY }}