Skip to content

Commit 01dd95a

Browse files
ci(release): add GitHub release packaging
1 parent aa38b3a commit 01dd95a

1 file changed

Lines changed: 30 additions & 25 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
name: Build and Release
22

33
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
47
workflow_dispatch:
58
inputs:
69
tag:
7-
description: "Git tag to build and release (e.g. v2.1.1)"
10+
description: "Git tag to build and release, for example v2.1.3"
811
required: true
912
type: string
1013

1114
permissions:
1215
contents: write
1316

17+
env:
18+
RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
19+
1420
jobs:
1521
build-windows:
1622
runs-on: windows-latest
1723
steps:
18-
- uses: actions/checkout@v4
24+
- name: Check out release ref
25+
uses: actions/checkout@v4
1926
with:
20-
ref: ${{ inputs.tag }}
27+
ref: ${{ env.RELEASE_TAG }}
2128

2229
- name: Install Node.js
2330
uses: actions/setup-node@v4
2431
with:
2532
node-version: 22
33+
cache: npm
2634

2735
- name: Install Rust stable
2836
uses: dtolnay/rust-toolchain@stable
@@ -55,20 +63,22 @@ jobs:
5563
env:
5664
STACKDROP_TOOL_ROOT: ${{ github.workspace }}/src-tauri/resources/windows-tools
5765

58-
- name: Build Tauri (Windows)
66+
- name: Build Tauri Windows package
5967
run: npm run tauri -- build
6068

61-
- name: Upload NSIS installer
69+
- name: Upload NSIS installer artifact
6270
uses: actions/upload-artifact@v4
6371
with:
6472
name: windows-nsis-installer
6573
path: src-tauri/target/release/bundle/nsis/*.exe
74+
if-no-files-found: error
6675

67-
- name: Upload MSI installer
76+
- name: Upload MSI installer artifact
6877
uses: actions/upload-artifact@v4
6978
with:
7079
name: windows-msi-installer
7180
path: src-tauri/target/release/bundle/msi/*.msi
81+
if-no-files-found: error
7282

7383
release:
7484
needs: build-windows
@@ -86,33 +96,28 @@ jobs:
8696
name: windows-msi-installer
8797
path: artifacts/msi
8898

89-
- name: Create or update GitHub Release
99+
- name: Create GitHub Release
90100
uses: softprops/action-gh-release@v2
91101
with:
92-
tag_name: ${{ inputs.tag }}
93-
name: StackDrop ${{ inputs.tag }}
102+
tag_name: ${{ env.RELEASE_TAG }}
103+
name: StackDrop ${{ env.RELEASE_TAG }}
94104
body: |
95-
## What's new
96-
97-
### Search accuracy improvements
98-
- **Weighted ranking**: filename matches rank above path matches, which rank above body matches (bm25 10/5/1)
99-
- **Path search**: search by folder/path segments finds documents in nested directories
100-
- **Prefix matching**: partial queries match as you type (e.g. "hel" finds "hello")
101-
- **Highlighted snippets**: search results show `<mark>` highlighted body excerpts
102-
- **Exact filename boost**: typing an exact filename always surfaces it first
103-
- **Auto-relevance sort**: active search uses relevance ranking; empty browse uses recency
104-
105-
### Other
106-
- Windows release CI: Rust tests use bundled `windows-tools` antiword (correct `ANTIWORDHOME` maps)
107-
- Safe FTS5 schema migration (old databases upgrade automatically)
108-
- Documentation updated: OCR, watcher, `.doc` support, ranking behavior
109-
- 22 new search accuracy tests (unit + integration + e2e)
105+
## StackDrop ${{ env.RELEASE_TAG }}
106+
107+
StackDrop is a local-first Windows desktop document search app. It indexes supported files on your computer and does not upload your documents.
108+
109+
### Install
110+
111+
Download `StackDrop_*_x64-setup.exe`, run the installer, open StackDrop, add a folder, click **Index library**, then search by filename, path, or content.
110112
111113
### Downloads
114+
112115
| File | Description |
113116
|------|-------------|
114-
| `StackDrop_*_x64-setup.exe` | Windows installer (recommended) |
117+
| `StackDrop_*_x64-setup.exe` | Windows installer, recommended for most users |
115118
| `StackDrop_*_x64_en-US.msi` | Windows MSI package |
119+
120+
Windows may show a SmartScreen warning because the installer is currently unsigned.
116121
files: |
117122
artifacts/nsis/*.exe
118123
artifacts/msi/*.msi

0 commit comments

Comments
 (0)