diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index b94fa633..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,66 +0,0 @@ -tag-prefix: "" -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '📚 Documentation' - label: 'documentation' - - title: '🔒 Security' - label: 'security' - - title: '🧰 GitHub Actions' - label: 'github actions' -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -template: | - ## Changes - - $CHANGES - -change-title-escapes: '\<*_&"''' -autolabeler: - - label: 'documentation' - files: - - '*.md' - branch: - - '/docs{0,1}\/.+/' - - label: 'bug' - branch: - - '/fix\/.+/' - title: - - '/fix/i' - - label: 'enhancement' - branch: - - '/feature\/.+/' - body: - - '/[A-Z]+-[0-9]+/' - - label: 'documentation' - files: - - '**/*.md' - - 'docs/**/*' - - label: 'security' - branch: - - '/security\/.+/' - -include-labels: - - 'documentation' - - 'bug' - - 'enhancement' - - 'security' - - 'github actions' - -replacers: - - search: /"/g - replace: '' - - search: /'/g - replace: '' - - search: /`/g - replace: '' -exclude-labels: - - 'skip-changelog' - -filter-by-commitish: false \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..51218dc9 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,20 @@ +changelog: + categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '📚 Documentation' + label: 'documentation' + - title: '🔒 Security' + label: 'security' + - title: '🧰 GitHub Actions' + label: 'github actions' + exclude: + labels: + - 'skip-changelog' \ No newline at end of file diff --git a/.github/workflows/linutil.yml b/.github/workflows/linutil.yml index f7f369e8..f57e8a74 100644 --- a/.github/workflows/linutil.yml +++ b/.github/workflows/linutil.yml @@ -1,8 +1,6 @@ name: LinUtil Release on: - push: - branches: ["main"] workflow_dispatch: permissions: @@ -55,12 +53,6 @@ jobs: mv build/x86_64-unknown-linux-musl/release/linutil build/linutil mv build/aarch64-unknown-linux-musl/release/linutil build/linutil-aarch64 - - name: Pull latest changes - run: | - git config --global user.email "github-actions@github.com" - git config --global user.name "GitHub Actions" - git pull origin main - - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Commit Linutil @@ -75,15 +67,6 @@ jobs: echo "version=$version" >> $GITHUB_ENV shell: bash - - name: Generate Release Notes - id: generate_notes - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - config-name: release-drafter.yml - version: ${{ env.version }} - - name: Create and Upload Release id: create_release uses: softprops/action-gh-release@v2 @@ -91,12 +74,11 @@ jobs: tag_name: ${{ env.version }} name: Pre-Release ${{ env.version }} body: | - ${{ steps.generate_notes.outputs.body }} - ![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil) ![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil-aarch64) - append_body: false + append_body: true + generate_release_notes: true files: | ./build/linutil ./build/linutil-aarch64