Skip to content

Commit 4775127

Browse files
authored
Simplify release creation in tauri-build workflow
1 parent 5386f88 commit 4775127

1 file changed

Lines changed: 6 additions & 44 deletions

File tree

.github/workflows/tauri-build.yml

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -121,52 +121,14 @@ jobs:
121121
env:
122122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123123
with:
124+
tagName: ${{ github.ref_name }}
125+
releaseName: FOFA Leak Search ${{ github.ref_name }}
126+
releaseBody: |
127+
FOFA Leak Search Desktop Release
128+
releaseDraft: true
129+
prerelease: false
124130
tauriScript: npx tauri
125131
args: >
126132
--target ${{ matrix.target }}
127133
${{ matrix.bundles && format('--bundles {0}', matrix.bundles) || '' }}
128134
129-
create-release:
130-
needs: build
131-
runs-on: ubuntu-latest
132-
if: startsWith(github.ref, 'refs/tags/')
133-
permissions:
134-
contents: write
135-
136-
steps:
137-
- name: Checkout
138-
uses: actions/checkout@v6
139-
140-
- name: Get version from tag
141-
id: version
142-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
143-
144-
- name: Create Release
145-
uses: softprops/action-gh-release@v1
146-
with:
147-
tag_name: ${{ steps.version.outputs.VERSION }}
148-
name: "FOFA Leak Search ${{ steps.version.outputs.VERSION }}"
149-
body: |
150-
## FOFA Leak Search Desktop - ${{ steps.version.outputs.VERSION }}
151-
152-
### 下载说明
153-
- **macOS (Apple Silicon)**: `.app.tar.gz` 或 `.dmg`
154-
- **macOS (Intel)**: `.app.tar.gz` 或 `.dmg`
155-
- **Windows (x64)**: `.msi` 或 `.exe` 安装程序
156-
- **Windows (ARM64)**: `.msi` 或 `.exe` 安装程序
157-
- **Linux (x64)**: `.AppImage` 或 `.deb`
158-
- **Linux (ARM64)**: `.AppImage` 或 `.deb`
159-
160-
### macOS 安装说明
161-
1. 下载 `.app.tar.gz` 文件并解压
162-
2. 将 `.app` 拖入 Applications 文件夹
163-
3. 首次打开可能需要在「系统偏好设置 > 安全性与隐私」中允许运行
164-
165-
### Windows 安装说明
166-
下载 `.msi` 或 `.exe` 安装程序,双击运行即可。
167-
168-
### Linux 安装说明
169-
- AppImage: `chmod +x *.AppImage && ./fofa-leak-search*.AppImage`
170-
- Deb: `sudo dpkg -i fofa-leak-search*.deb`
171-
draft: true
172-
prerelease: false

0 commit comments

Comments
 (0)