Skip to content

Commit

Permalink
fix: 修复构建无法获取changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lerdb committed Feb 25, 2024
1 parent f24762e commit e9e6f32
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ jobs:
run: |
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
Expand All @@ -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:
Expand Down

0 comments on commit e9e6f32

Please sign in to comment.