init
Some checks failed
Some checks failed
This commit is contained in:
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@@ -50,13 +50,17 @@ jobs:
|
|||||||
|
|
||||||
# 重命名生成的可执行文件
|
# 重命名生成的可执行文件
|
||||||
mv dist/rsync-tui${EXT} dist/rsync-tui-${SYSNAME}${EXT}
|
mv dist/rsync-tui${EXT} dist/rsync-tui-${SYSNAME}${EXT}
|
||||||
|
|
||||||
|
# 删除原始文件(如果有)
|
||||||
|
[ -f dist/rsync-tui${EXT} ] && rm dist/rsync-tui${EXT}
|
||||||
|
|
||||||
ls dist
|
ls dist
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rsync-tui-${{ runner.os }}
|
name: rsync-tui-${{ runner.os }}
|
||||||
path: dist/*
|
path: dist/rsync-tui-*
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -70,6 +74,6 @@ jobs:
|
|||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: dist/**/*
|
files: dist/rsync-tui-*
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user