-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (64 loc) · 2.04 KB
/
release.yaml
File metadata and controls
76 lines (64 loc) · 2.04 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
name: Release on tag
on:
push:
tags:
- '*'
jobs:
build-and-release:
name: Build and Release (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_path: target/dx/nzskkserv-gui/bundle/linux/bundle/appimage/*.AppImage
- os: macos-latest
artifact_path: target/dx/nzskkserv-gui/bundle/macos/bundle/dmg/*.dmg
- os: windows-latest
artifact_path: target/dx/nzskkserv-gui/bundle/windows/bundle/msi/*.msi
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Linux dependencies
if: runner.os == 'Linux'
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: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: true
- name: Install dioxus-cli
uses: taiki-e/install-action@v2
with:
tool: dioxus-cli@0.7
- name: Build bundle
run: pnpm bundle
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact to release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
files: ${{ matrix.artifact_path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}