Repository navigation
63 lines (51 loc) · 1.9 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (51 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Release
# Builds a standalone Windows .exe and publishes it to GitHub Releases.
# - every push to main -> updates the rolling "latest" release
# - a version tag (v*) -> creates a versioned release
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
windows-exe:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install JS dependencies
run: npm install
- name: Stamp version 0.1.${{ github.run_number }}
shell: pwsh
run: |
$p = "src-tauri/tauri.conf.json"
(Get-Content $p -Raw) -replace '"version":\s*"[^"]*"', '"version": "0.1.${{ github.run_number }}"' | Set-Content $p -Encoding utf8
Write-Output "App version -> 0.1.${{ github.run_number }}"
- name: Build standalone .exe (no installer / no wizard)
run: npm run tauri build -- --no-bundle
- name: Stage artifact
shell: pwsh
run: |
New-Item -ItemType Directory -Force dist-exe | Out-Null
Copy-Item "src-tauri/target/release/mamasql.exe" "dist-exe/MamaSQL.exe"
- name: Publish to Releases
uses: softprops/action-gh-release@v2
with:
files: dist-exe/MamaSQL.exe
tag_name: v0.1.${{ github.run_number }}
name: v0.1.${{ github.run_number }}
prerelease: false
make_latest: true
fail_on_unmatched_files: true
body: |
**MamaSQL — standalone Windows executable.**
Download **`MamaSQL.exe`** below and run it. No installer, no wizard,
nothing else to download. (Uses the Microsoft Edge WebView2 runtime,
which ships with Windows 10 & 11.)