-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.33 KB
/
Copy pathrelease.yml
File metadata and controls
45 lines (40 loc) · 1.33 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
name: Release
# Tag a commit `v0.1.0-alpha.1` (etc.) and push the tag; this builds the
# installers and portable zip and publishes a GitHub release. Installers are
# unsigned — signing infra is a deliberate non-goal for now.
on:
push:
tags: ["v*"]
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
cache-dependency-path: ui/package-lock.json
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: npm ci
working-directory: ui
- run: npm run build:app
- name: Package portable zip
shell: pwsh
run: |
$exe = if (Test-Path target/release/mathom.exe) { "target/release/mathom.exe" }
else { "target/release/mathom-app.exe" }
Compress-Archive -Path $exe -DestinationPath "mathom-${{ github.ref_name }}-windows-x64-portable.zip"
- uses: softprops/action-gh-release@v2
with:
prerelease: true # alpha: flip when the first stable ships
generate_release_notes: true
files: |
target/release/bundle/msi/*.msi
target/release/bundle/nsis/*.exe
mathom-*-portable.zip