Skip to content

Commit 397e30d

Browse files
committed
Name releases folje
1 parent 6b1ad87 commit 397e30d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,20 @@ jobs:
9797
run: |
9898
SHORT_SHA=$(git rev-parse --short HEAD)
9999
COMMIT_MSG=$(git log -1 --pretty=%s)
100+
DATE=$(date -u +%Y-%m-%d)
100101
echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT"
101102
echo "commit_msg=$COMMIT_MSG" >> "$GITHUB_OUTPUT"
103+
echo "date=$DATE" >> "$GITHUB_OUTPUT"
102104
shell: bash
103105

104106
- name: Create per-commit release
105107
env:
106108
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107109
run: |
110+
printf "Build from commit %s\n\n%s\n" "${{ github.sha }}" "${{ steps.commit_info.outputs.commit_msg }}" > release_notes.md
108111
gh release create "${{ steps.commit_info.outputs.short_sha }}" \
109-
--title "${{ steps.commit_info.outputs.short_sha }} - ${{ steps.commit_info.outputs.commit_msg }}" \
110-
--notes "Build from commit ${{ github.sha }}" \
112+
--title "Följe ${{ steps.commit_info.outputs.date }} (${{ steps.commit_info.outputs.short_sha }})" \
113+
--notes-file release_notes.md \
111114
--repo LogFlames/folje \
112115
./windows-build-output/Följe.exe ./macos-build-output/Följe.app.zip
113116
shell: bash

0 commit comments

Comments
 (0)