-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (66 loc) · 2.06 KB
/
build.yml
File metadata and controls
80 lines (66 loc) · 2.06 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build and Release
on:
push:
branches:
- dev
jobs:
build-and-release-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Git LFS Pull
run: git lfs pull
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: npm ci
- name: Build
run: npm run tauri build
- uses: actions/upload-artifact@v4
with:
name: compressorx-windows
path: src-tauri/target/release/bundle/msi/*.msi
create-release:
needs: [build-and-release-windows]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: compressorx-windows
path: compressorx-windows
- uses: ncipollo/release-action@v1.14.0
with:
artifacts: "compressorx-windows/*.msi"
token: ${{ secrets.RELEASE_TOKEN }}
name: Build v${{ github.run_number }}
tag: v${{ github.run_number }}
prerelease: true
body: |
Development build v${{ github.run_number }}
### Build Information
- Branch: ${{ github.ref_name }}
- Commit: ${{ github.sha }}
- Build Date: ${{ github.event.head_commit.timestamp }}
- Workflow Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
### System Requirements
- Windows 10/11 64-bit
### Installation
1. Download the MSI installer
2. Run the installer and follow the setup wizard
3. Launch CompressorX from the Start Menu
cleanup:
needs: create-release
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: |
compressorx-windows