mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
fix: 修复构建无法获取changelog
This commit is contained in:
parent
f24762ecb7
commit
e9e6f327e6
10
.github/workflows/build_release.yml
vendored
10
.github/workflows/build_release.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user