Skip to content

Commit 23921d9

Browse files
committed
fix
Signed-off-by: Pushkar Mishra <[email protected]>
1 parent d975b8e commit 23921d9

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
librsvg2-dev
4444
4545
- name: Install frontend dependencies
46-
run: npm install
46+
run: bun install
4747

4848
- name: Build
49-
run: npm run tauri build
49+
run: bun run tauri build

.github/workflows/release.yml

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,42 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
platform: [ubuntu-latest]
14-
14+
1515
runs-on: ${{ matrix.platform }}
16-
16+
1717
steps:
1818
- uses: actions/checkout@v4
19-
19+
20+
- name: Get version from tag
21+
id: get_version
22+
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
23+
2024
- name: Setup Bun
2125
uses: oven-sh/setup-bun@v1
2226
with:
2327
bun-version: latest
24-
28+
2529
- name: Install Rust
2630
uses: dtolnay/rust-toolchain@stable
27-
31+
2832
- name: Install Linux dependencies
2933
if: matrix.platform == 'ubuntu-latest'
3034
run: |
3135
sudo apt-get update
32-
sudo apt-get install -y libwebkit2gtk-4.0-dev \
33-
libgtk-3-dev \
34-
libayatana-appindicator3-dev \
35-
librsvg2-dev
36-
36+
sudo apt install \
37+
libwebkit2gtk-4.1-dev \
38+
build-essential \
39+
curl \
40+
wget \
41+
file \
42+
libxdo-dev \
43+
libssl-dev \
44+
libayatana-appindicator3-dev \
45+
librsvg2-dev
46+
3747
- name: Install frontend dependencies
38-
run: npm install
39-
48+
run: bun install
49+
4050
- name: Build for release
4151
uses: tauri-apps/tauri-action@v0
4252
env:
@@ -47,3 +57,16 @@ jobs:
4757
releaseBody: 'See the assets to download this version and install.'
4858
releaseDraft: true
4959
prerelease: false
60+
61+
- name: Upload release bundles
62+
if: success()
63+
uses: softprops/action-gh-release@v1
64+
with:
65+
files: |
66+
src-tauri/target/release/bundle/deb/nearchat_${{ env.VERSION }}_amd64.deb
67+
src-tauri/target/release/bundle/rpm/nearchat-${{ env.VERSION }}-1.x86_64.rpm
68+
src-tauri/target/release/bundle/appimage/nearchat_${{ env.VERSION }}_amd64.AppImage
69+
tag_name: ${{ github.ref_name }}
70+
draft: true
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)