-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (66 loc) · 2.42 KB
/
release-gui.yaml
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
name: Release GUI
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/[email protected]
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/[email protected]
with:
prefix-key: cargo-${{ matrix.platform }}
- name: Sync node version and setup cache
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'npm'
- name: Node.js cache
uses: actions/[email protected]
with:
path: ${{ github.workspace }}/gui/frontend/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('gui/frontend/src/**/*.[jt]s', 'gui/frontend/src/**/*.[jt]sx') }}
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install frontend dependencies
run: npm ci
- name: Update CHANGELOG
id: changelog
uses: requarks/[email protected]
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
if: runner.os == 'macOS'
- name: Build the app
uses: tauri-apps/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseName: 'DAR to OAR Converter v__VERSION__'
tagName: ${{ github.ref_name }}
releaseBody: ${{ steps.changelog.outputs.changes }}
prerelease: false
- name: Commit CHANGELOG.md
uses: stefanzweifel/[email protected]
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md
if: runner.os == 'macOS'