-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (70 loc) · 1.99 KB
/
Copy pathtauri-release.yml
File metadata and controls
83 lines (70 loc) · 1.99 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
81
82
83
name: Tauri Release (Webtools Desktop)
on:
push:
tags:
- 'webtools-v*'
permissions:
contents: write
jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
include:
- platform: ubuntu-22.04
- platform: windows-latest
- platform: macos-latest
runs-on: ${{ matrix.platform }}
defaults:
run:
working-directory: web
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'
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: Install dependencies
run: bun i
# - name: Read release notes
# id: notes
# shell: bash
# run: |
# {
# cat ${{ github.ref_name }}.md
# echo EOF
# } >> "$GITHUB_OUTPUT"
- name: Build and Publish Tauri App
uses: tauri-apps/tauri-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: Release ${{ github.ref_name }} - Webtools Desktop
releaseBody: |
Automatic Release for Webtools Desktop Version ${{ github.ref_name }}. Download links are down below!
releaseDraft: false
generateReleaseNotes: true
prerelease: false
projectPath: "web"