Skip to content

Commit

Permalink
build: 修复构建
Browse files Browse the repository at this point in the history
  • Loading branch information
lerdb committed Feb 2, 2024
1 parent 61f426e commit af1c69a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Build Release

on:
Expand Down Expand Up @@ -77,14 +76,14 @@ jobs:
pattern: dist-*
merge-multiple: false

- name: Get File Address
- name: Rename File
run: |
echo "windowsFile=./dist/dist-windows-latest/lx-music-api-server_$(git rev-parse --short HEAD).exe" >> $GITHUB_ENV
echo "macosFile=./dist/dist-macos-latest/lx-music-api-server_$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "linuxFile=./dist/dist-ubuntu-latest/lx-music-api-server_$(git rev-parse --short HEAD)" >> $GITHUB_ENV
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 }}_linux
- name: Generate Changelog
run: python build.py changelog >> ./changelog.md
# - name: Generate Changelog
# run: python build.py changelog >> ./changelog.md

- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -94,8 +93,8 @@ jobs:
draft: false
tag_name: v${{ env.PACKAGE_VERSION }}
files: |
${{ env.windowsFile }}
${{ env.macosFile }}
${{ env.linuxFile }}
./dist/lx-music-api-server_${{ env.PACKAGE_VERSION }}_windows.exe
./dist/lx-music-api-server_${{ env.PACKAGE_VERSION }}_macos
./dist/lx-music-api-server_${{ env.PACKAGE_VERSION }}_linux
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit af1c69a

Please sign in to comment.