Skip to content

The only downloader you need. 下载器的集大成者。

ci: 修复 Release 脚本

XiaoYouChR685b808757c1
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 657a7186..71502eef 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -47,7 +47,7 @@ jobs:
- name: Create zip file
shell: pwsh
run: |
- $distPath = "dist/Ghost-Downloader.dist"
+ $distPath = "dist/Ghost-Downloader-3.dist"
$zipFile = "Ghost-Downloader-v${{ env.VERSION }}-Windows-${{ matrix.architecture }}.zip"
# Create a zip file containing the contents of Ghost-Downloader.dist, without the folder itself
@@ -168,11 +168,11 @@ jobs:
sleep 1
hdiutil create -srcfolder "dist/" -volname "Ghost-Downloader-3" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDZO -size 400m "Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}.dmg"
- - name: Upload artifacts
- uses: actions/upload-artifact@v4
+ - name: Upload to release
+ uses: softprops/action-gh-release@v2
+ if: startsWith(github.ref, 'refs/tags/')
with:
- name: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}
- path: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}.dmg
+ files: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}.dmg
build-ubuntu:
strategy:
@@ -205,7 +205,7 @@ jobs:
- name: Zip the contents of Ghost-Downloader
shell: pwsh
run: |
- $distPath = "dist/Ghost-Downloader"
+ $distPath = "dist/Ghost-Downloader-3.dist"
$zipFile = "Ghost-Downloader-v${{ env.VERSION }}-Linux-${{ matrix.architecture }}.zip"
# Create a zip file containing the contents of Ghost-Downloader.dist, without the folder itself