Skip to content

Commit a9a678f

Browse files
update release
1 parent 35c41e8 commit a9a678f

File tree

3 files changed

+22
-86
lines changed

3 files changed

+22
-86
lines changed

.github/release-drafter.yml

-66
This file was deleted.

.github/release.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
changelog:
2+
categories:
3+
- title: '🚀 Features'
4+
labels:
5+
- 'feature'
6+
- 'enhancement'
7+
- title: '🐛 Bug Fixes'
8+
labels:
9+
- 'fix'
10+
- 'bugfix'
11+
- 'bug'
12+
- title: '📚 Documentation'
13+
label: 'documentation'
14+
- title: '🔒 Security'
15+
label: 'security'
16+
- title: '🧰 GitHub Actions'
17+
label: 'github actions'
18+
exclude:
19+
labels:
20+
- 'skip-changelog'

.github/workflows/linutil.yml

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: LinUtil Release
22

33
on:
4-
push:
5-
branches: ["main"]
64
workflow_dispatch:
75

86
permissions:
@@ -55,12 +53,6 @@ jobs:
5553
mv build/x86_64-unknown-linux-musl/release/linutil build/linutil
5654
mv build/aarch64-unknown-linux-musl/release/linutil build/linutil-aarch64
5755
58-
- name: Pull latest changes
59-
run: |
60-
git config --global user.email "[email protected]"
61-
git config --global user.name "GitHub Actions"
62-
git pull origin main
63-
6456
- uses: stefanzweifel/git-auto-commit-action@v5
6557
with:
6658
commit_message: Commit Linutil
@@ -75,28 +67,18 @@ jobs:
7567
echo "version=$version" >> $GITHUB_ENV
7668
shell: bash
7769

78-
- name: Generate Release Notes
79-
id: generate_notes
80-
uses: release-drafter/release-drafter@v6
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
with:
84-
config-name: release-drafter.yml
85-
version: ${{ env.version }}
86-
8770
- name: Create and Upload Release
8871
id: create_release
8972
uses: softprops/action-gh-release@v2
9073
with:
9174
tag_name: ${{ env.version }}
9275
name: Pre-Release ${{ env.version }}
9376
body: |
94-
${{ steps.generate_notes.outputs.body }}
95-
9677
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)
9778
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil-aarch64)
9879
99-
append_body: false
80+
append_body: true
81+
generate_release_notes: true
10082
files: |
10183
./build/linutil
10284
./build/linutil-aarch64

0 commit comments

Comments
 (0)