From 83cd6da29c403eacd40632c669ac4f37c673865f Mon Sep 17 00:00:00 2001 From: "Matt.Ma" Date: Tue, 9 Sep 2025 15:59:06 +0800 Subject: [PATCH] update github actions --- .github/workflows/release.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 85ddc8c..2ae9f94 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,7 +6,7 @@ permissions: on: push: tags: - - 'v*' # 例如 v1.0.0 + - 'v*' jobs: build: @@ -47,7 +47,7 @@ jobs: EXT= fi - # 打包 + # 用 PyInstaller 打包 pyinstaller --onefile rsync-tui.py # 获取 tag 名 @@ -56,30 +56,30 @@ jobs: # 重命名可执行文件 mv dist/rsync-tui${EXT} dist/rsync-tui-${SYSNAME}-${TAG_NAME}${EXT} - # 显示 dist 内容 ls -l dist - name: Upload build artifact uses: actions/upload-artifact@v4 with: - name: rsync-tui + name: rsync-tui-${{ runner.os }} path: dist/rsync-tui-* release: runs-on: ubuntu-latest needs: build steps: - - name: Download artifacts + - name: Download all artifacts uses: actions/download-artifact@v4 with: - name: rsync-tui path: dist - name: Prepare files for release shell: bash run: | mkdir -p dist-root - cp dist/* dist-root/ + for d in dist/*; do + cp "$d"/* dist-root/ + done ls -l dist-root - name: Create Release