mirror of
https://github.com/mivodev/mivo.git
synced 2026-01-26 05:25:42 +07:00
ci: add ai release notes generator to workflow
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -14,6 +14,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
@@ -32,7 +34,7 @@ jobs:
|
||||
# Export source using git archive (respects .gitattributes)
|
||||
git archive --format=tar HEAD | tar -x -C release_temp
|
||||
|
||||
- name: Install Development Dependencies (for Build)
|
||||
- name: Install Development Dependencies (for Build & AI)
|
||||
run: npm install
|
||||
|
||||
- name: Build Localized Assets & Editor Bundle
|
||||
@@ -40,6 +42,12 @@ jobs:
|
||||
npm run sync:assets
|
||||
npm run build:editor
|
||||
|
||||
- name: Generate AI Release Notes
|
||||
env:
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
run: |
|
||||
node .github/scripts/generate-release-notes.js ${{ github.ref_name }}
|
||||
|
||||
- name: Install Production Dependencies
|
||||
run: |
|
||||
cd release_temp
|
||||
@@ -60,8 +68,8 @@ jobs:
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: mivo-v${{ steps.get_version.outputs.VERSION }}.zip
|
||||
body_path: .github/release_template.md
|
||||
generate_release_notes: true
|
||||
body_path: .github/release_notes.md
|
||||
generate_release_notes: false
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user