mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Update build_release.yml
This commit is contained in:
@@ -24,14 +24,37 @@ jobs:
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate release notes
|
||||
id: release_notes
|
||||
uses: release-drafter/release-drafter@v6
|
||||
with:
|
||||
config-name: release-drafter.yml
|
||||
|
||||
- name: Save release notes to file
|
||||
run: |
|
||||
echo "${{ steps.release_notes.outputs.body }}" > RELEASE_NOTES.md
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Commit RELEASE_NOTES.md
|
||||
run: |
|
||||
git add RELEASE_NOTES.md
|
||||
git commit -m "Update RELEASE_NOTES.md for ${{ github.ref_name }}" || echo "No changes to commit"
|
||||
git push
|
||||
|
||||
- name: Run build script
|
||||
run: npm run release
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: "${{ github.ref_name }}"
|
||||
name: "Release ${{ github.ref_name }}"
|
||||
files: package/packages/com_sportsmanager.zip
|
||||
body_path: "RELEASE_NOTES.md"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user