-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (66 loc) · 1.88 KB
/
main.yml
File metadata and controls
79 lines (66 loc) · 1.88 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
name: 🏗️ Build
on:
workflow_dispatch:
inputs:
type:
description: 'Release type'
required: true
default: 'MINOR'
type: choice
options:
- MAJOR
- MINOR
- PATCH
jobs:
build:
name: Build
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup up PNPM
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup up Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Increment version
uses: scomans/increment-version-action@v1
id: version-increment
with:
releaseType: ${{ github.event.inputs.type }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update version
run: pnpm update-version ${{ steps.version-increment.outputs.newVersion }}
- name: 🏗️ Build frontend
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: pnpm build frontend --configuration=production
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
id: rust-cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
dist/apps/wrapper
key: rust-cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: 🏗️ Build Wrapper
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ""
run: pnpm build wrapper
- name: 🚀 Deploy DevConsole
run: pnpm release