Skip to content

Commit 43a31e5

Browse files
committed
start of update stuff & added github workflow
1 parent f663b8e commit 43a31e5

File tree

11 files changed

+427
-49
lines changed

11 files changed

+427
-49
lines changed

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
release:
9+
permissions:
10+
contents: write
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
platform: [windows-latest, macos-latest, ubuntu-latest]
15+
runs-on: ${{ matrix.platform }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v2
27+
with:
28+
version: 8
29+
run_install: false
30+
31+
- name: Install Rust (Stable)
32+
uses: dtolnay/rust-toolchain@stable
33+
34+
- name: Install Dependencies (ubuntu only)
35+
if: matrix.platform == 'ubuntu-latest'
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
39+
40+
- name: Install frontend dependencies
41+
run: pnpm install
42+
43+
- name: Build the app
44+
uses: tauri-apps/tauri-action@v0
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
48+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
49+
with:
50+
tagName: ${{ github.ref_name }}
51+
releaseName: 'LitePost v${{ github.ref_name }}'
52+
releaseBody: 'See the assets to download this version and install.'
53+
releaseDraft: true
54+
prerelease: false

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@radix-ui/react-dialog": "^1.1.5",
1616
"@radix-ui/react-dropdown-menu": "^2.1.4",
1717
"@radix-ui/react-label": "^2.1.1",
18+
"@radix-ui/react-progress": "^1.1.1",
1819
"@radix-ui/react-scroll-area": "^1.2.2",
1920
"@radix-ui/react-select": "^2.1.4",
2021
"@radix-ui/react-separator": "^1.1.1",
@@ -27,6 +28,8 @@
2728
"@tauri-apps/plugin-fs": "~2",
2829
"@tauri-apps/plugin-http": "^2.2.0",
2930
"@tauri-apps/plugin-opener": "^2",
31+
"@tauri-apps/plugin-process": "^2.2.0",
32+
"@tauri-apps/plugin-updater": "~2.3.1",
3033
"@types/react-syntax-highlighter": "^15.5.13",
3134
"@types/uuid": "^10.0.0",
3235
"class-variance-authority": "^0.7.1",

pnpm-lock.yaml

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)