fix: 修复构建无法获取changelog

This commit is contained in:
lerdb 2024-02-25 10:38:53 +08:00
parent f24762ecb7
commit e9e6f327e6
No known key found for this signature in database
GPG Key ID: FBBF3738C577282C

View File

@ -60,6 +60,11 @@ jobs:
python -m pip install toml
echo PACKAGE_VERSION=`python -c 'import toml; print(toml.load("./pyproject.toml")["tool"]["poetry"]["version"])'` >> $GITHUB_ENV
- name: Generate Changelog
run: |
git fetch --prune --unshallow --tags
python build.py changelog >> ./changelog.md
- name: Create git tag
uses: pkgdeps/git-tag-action@v2
with:
@ -76,15 +81,12 @@ jobs:
pattern: dist-*
merge-multiple: false
- name: Rename File
- name: Rename Files
run: |
mv ./dist/dist-windows-latest/lx-music-api-server_${{ env.PACKAGE_VERSION }}.exe ./dist/lx-music-api-server_${{ env.PACKAGE_VERSION }}_windows.exe
mv ./dist/dist-macos-latest/lx-music-api-server_${{ env.PACKAGE_VERSION }} ./dist/lx-music-api-server_${{ env.PACKAGE_VERSION }}_macos
mv ./dist/dist-ubuntu-latest/lx-music-api-server_${{ env.PACKAGE_VERSION }} ./dist/lx-music-api-server_${{ env.PACKAGE_VERSION }}_ubuntu
# - name: Generate Changelog
# run: python build.py changelog >> ./changelog.md
- name: Release
uses: softprops/action-gh-release@v1
with: